]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/gpio/gpio-moxtet.c
gpio: Use new GPIO_LINE_DIRECTION
[linux.git] / drivers / gpio / gpio-moxtet.c
index 3fd729994a3878eb844a84a62180321f5cd441b1..8299909318f412451e0cfe6762ad3921d4fbdcff 100644 (file)
@@ -78,9 +78,9 @@ static int moxtet_gpio_get_direction(struct gpio_chip *gc, unsigned int offset)
 
        /* All lines are hard wired to be either input or output, not both. */
        if (chip->desc->in_mask & BIT(offset))
-               return 1;
+               return GPIO_LINE_DIRECTION_IN;
        else if (chip->desc->out_mask & BIT(offset))
-               return 0;
+               return GPIO_LINE_DIRECTION_OUT;
        else
                return -EINVAL;
 }