gpio: tpx65xxx: Include the right header

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>
This commit is contained in:
Linus Walleij
2018-08-29 16:45:30 +02:00
parent f1ff4b8417
commit 5d75683e2b
4 changed files with 6 additions and 6 deletions

View 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)