gpio: tpx65xxx: Include the right header
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Aug 2018 14:45:30 +0000 (16:45 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 4 Sep 2018 06:22:37 +0000 (08:22 +0200)
These are drivers so include only <linux/gpio/driver.h>.

Acked-by: Andrew F. Davis <afd@ti.com>
Reviewed-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tps65086.c
drivers/gpio/gpio-tps6586x.c
drivers/gpio/gpio-tps65910.c
drivers/gpio/gpio-tps65912.c

index b23c4d2429be51f47035f1920554e3bf77e122ae..47a8b209183cf7a291e20002d3430c82275c4761 100644 (file)
@@ -14,7 +14,7 @@
  * Based on the TPS65912 driver
  */
 
-#include <linux/gpio.h>
+#include <linux/gpio/driver.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
 
index 042b9a20781af42fcda8d5b5a6832afbdcfc31b5..f7404a6de55a8dc15ff10f94e68e8a646394e232 100644 (file)
@@ -22,7 +22,7 @@
  */
 
 #include <linux/errno.h>
-#include <linux/gpio.h>
+#include <linux/gpio/driver.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/mfd/tps6586x.h>
index e63d7dabf78b1e61482cc5716b69640efa5d9c9c..55c745b53d0f8fb268d462c5eef40b2635c84766 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/errno.h>
-#include <linux/gpio.h>
+#include <linux/gpio/driver.h>
 #include <linux/i2c.h>
 #include <linux/platform_device.h>
 #include <linux/mfd/tps65910.h>
index abc0798ef843a485a88b4a520cb529e1b6b99780..e492c669b10fb9f5a2e1c6d24b7746fd07224ea2 100644 (file)
@@ -17,7 +17,7 @@
  * Margarita Olaya Cabrera <magi@slimlogic.co.uk>
  */
 
-#include <linux/gpio.h>
+#include <linux/gpio/driver.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
 
@@ -40,9 +40,9 @@ static int tps65912_gpio_get_direction(struct gpio_chip *gc,
                return ret;
 
        if (val & GPIO_CFG_MASK)
-               return GPIOF_DIR_OUT;
+               return 0;
        else
-               return GPIOF_DIR_IN;
+               return 1;
 }
 
 static int tps65912_gpio_direction_input(struct gpio_chip *gc, unsigned offset)