]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
gpio: mockup: fix direction values
authorBartosz Golaszewski <brgl@bgdev.pl>
Thu, 25 May 2017 08:33:38 +0000 (10:33 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 29 May 2017 11:27:24 +0000 (13:27 +0200)
The comment in linux/gpio/driver.h says:

 @get_direction: returns direction for signal "offset", 0=out, 1=in

We got those switched at some point. Fix the values.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mockup.c

index c6dadac70593234c7e7be4e0a977c65446c9a11b..c18d011770c82cd6f57868d817bfe51adc0de841 100644 (file)
@@ -29,8 +29,8 @@
 #define        GPIO_MOCKUP_MAX_GC      10
 
 enum {
-       DIR_IN = 0,
-       DIR_OUT,
+       DIR_OUT = 0,
+       DIR_IN = 1,
 };
 
 /*