summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-mockup.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <brgl@bgdev.pl>2017-05-25 10:33:38 +0200
committerLinus Walleij <linus.walleij@linaro.org>2017-05-29 13:27:24 +0200
commitc9546cf141798a648c3053067a42936c36d626a3 (patch)
tree9dc6c0cfba805f2c7b1a8f5d71e83c7c9373cea3 /drivers/gpio/gpio-mockup.c
parent923a654c186c43734cfac5d7af6940093051bcbc (diff)
gpio: mockup: fix direction values
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>
Diffstat (limited to 'drivers/gpio/gpio-mockup.c')
-rw-r--r--drivers/gpio/gpio-mockup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c
index c6dadac70593..c18d011770c8 100644
--- a/drivers/gpio/gpio-mockup.c
+++ b/drivers/gpio/gpio-mockup.c
@@ -29,8 +29,8 @@
#define GPIO_MOCKUP_MAX_GC 10
enum {
- DIR_IN = 0,
- DIR_OUT,
+ DIR_OUT = 0,
+ DIR_IN = 1,
};
/*