Commit 5d75683e authored by Linus Walleij's avatar Linus Walleij

gpio: tpx65xxx: Include the right header

These are drivers so include only <linux/gpio/driver.h>.
Acked-by: default avatarAndrew F. Davis <afd@ti.com>
Reviewed-by: default avatarKeerthy <j-keerthy@ti.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent f1ff4b84
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* Based on the TPS65912 driver * Based on the TPS65912 driver
*/ */
#include <linux/gpio.h> #include <linux/gpio/driver.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
*/ */
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/gpio.h> #include <linux/gpio/driver.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/mfd/tps6586x.h> #include <linux/mfd/tps6586x.h>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/gpio.h> #include <linux/gpio/driver.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/mfd/tps65910.h> #include <linux/mfd/tps65910.h>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
* Margarita Olaya Cabrera <magi@slimlogic.co.uk> * Margarita Olaya Cabrera <magi@slimlogic.co.uk>
*/ */
#include <linux/gpio.h> #include <linux/gpio/driver.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
...@@ -40,9 +40,9 @@ static int tps65912_gpio_get_direction(struct gpio_chip *gc, ...@@ -40,9 +40,9 @@ static int tps65912_gpio_get_direction(struct gpio_chip *gc,
return ret; return ret;
if (val & GPIO_CFG_MASK) if (val & GPIO_CFG_MASK)
return GPIOF_DIR_OUT; return 0;
else else
return GPIOF_DIR_IN; return 1;
} }
static int tps65912_gpio_direction_input(struct gpio_chip *gc, unsigned offset) static int tps65912_gpio_direction_input(struct gpio_chip *gc, unsigned offset)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment