提交 c9546cf1 编写于 作者: B Bartosz Golaszewski 提交者: Linus Walleij

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: NBartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 923a654c
......@@ -29,8 +29,8 @@
#define GPIO_MOCKUP_MAX_GC 10
enum {
DIR_IN = 0,
DIR_OUT,
DIR_OUT = 0,
DIR_IN = 1,
};
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册