diff options
author | Bartosz Golaszewski <brgl@bgdev.pl> | 2017-05-25 11:33:38 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-05-29 14:27:24 +0300 |
commit | c9546cf141798a648c3053067a42936c36d626a3 (patch) | |
tree | 9dc6c0cfba805f2c7b1a8f5d71e83c7c9373cea3 /drivers/gpio | |
parent | 923a654c186c43734cfac5d7af6940093051bcbc (diff) | |
download | linux-c9546cf141798a648c3053067a42936c36d626a3.tar.xz |
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')
-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, }; /* |