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>
This commit is contained in:
parent
923a654c18
commit
c9546cf141
@ -29,8 +29,8 @@
|
||||
#define GPIO_MOCKUP_MAX_GC 10
|
||||
|
||||
enum {
|
||||
DIR_IN = 0,
|
||||
DIR_OUT,
|
||||
DIR_OUT = 0,
|
||||
DIR_IN = 1,
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user