diff options
author | Bartosz Golaszewski <[email protected]> | 2017-05-25 10:33:38 +0200 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2017-05-29 13:27:24 +0200 |
commit | c9546cf141798a648c3053067a42936c36d626a3 (patch) | |
tree | 9dc6c0cfba805f2c7b1a8f5d71e83c7c9373cea3 | |
parent | 923a654c186c43734cfac5d7af6940093051bcbc (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 <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
-rw-r--r-- | drivers/gpio/gpio-mockup.c | 4 |
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, }; /* |