2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 20:53:53 +08:00

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:
Bartosz Golaszewski 2017-05-25 10:33:38 +02:00 committed by Linus Walleij
parent 923a654c18
commit c9546cf141

View File

@ -29,8 +29,8 @@
#define GPIO_MOCKUP_MAX_GC 10
enum {
DIR_IN = 0,
DIR_OUT,
DIR_OUT = 0,
DIR_IN = 1,
};
/*