aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-max3191x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-max3191x.c')
-rw-r--r--drivers/gpio/gpio-max3191x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-max3191x.c b/drivers/gpio/gpio-max3191x.c
index 4b4b2ceb82fc..0696d5a21431 100644
--- a/drivers/gpio/gpio-max3191x.c
+++ b/drivers/gpio/gpio-max3191x.c
@@ -94,7 +94,7 @@ DECLARE_CRC8_TABLE(max3191x_crc8);
static int max3191x_get_direction(struct gpio_chip *gpio, unsigned int offset)
{
- return 1; /* always in */
+ return GPIO_LINE_DIRECTION_IN; /* always in */
}
static int max3191x_direction_input(struct gpio_chip *gpio, unsigned int offset)