Merge tag 'printk-for-5.5-pr-warning-removal' of git://git.kernel.org/pub/scm/linux...
[linux-2.6-microblaze.git] / drivers / gpio / gpio-twl6040.c
index c845b2f..648fb41 100644 (file)
@@ -34,8 +34,7 @@ static int twl6040gpo_get(struct gpio_chip *chip, unsigned offset)
 
 static int twl6040gpo_get_direction(struct gpio_chip *chip, unsigned offset)
 {
-       /* This means "out" */
-       return 0;
+       return GPIO_LINE_DIRECTION_OUT;
 }
 
 static int twl6040gpo_direction_out(struct gpio_chip *chip, unsigned offset,