]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
gpio: htc-gpio: Include the right header
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 4 Mar 2018 22:37:22 +0000 (23:37 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 19 Mar 2018 00:50:28 +0000 (01:50 +0100)
This driver is a pure GPIO driver and should only include
<linux/gpio/driver.h>. Drop the include of <linux/gpio.h>
from the platform data header as well, it serves no purpose.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-htc-egpio.c
include/linux/platform_data/gpio-htc-egpio.h

index 271356effb2e0ed7b84f52dabcfca812f10df9f9..5163839349453115708eea5346d842d6a526ed81 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <linux/init.h>
+#include <linux/gpio/driver.h>
 
 struct egpio_chip {
        int              reg_start;
index b7baf1e42c55aae43901e82207f718961c2f25b3..9a3e78082883f366922e318a0794baf393bd74bb 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef __HTC_EGPIO_H__
 #define __HTC_EGPIO_H__
 
-#include <linux/gpio.h>
-
 /* Descriptive values for all-in or all-out htc_egpio_chip descriptors. */
 #define HTC_EGPIO_OUTPUT (~0)
 #define HTC_EGPIO_INPUT  0