projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
923a654
)
gpio: mockup: fix direction values
author
Bartosz Golaszewski
<brgl@bgdev.pl>
Thu, 25 May 2017 08:33:38 +0000
(10:33 +0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 29 May 2017 11:27:24 +0000
(13:27 +0200)
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>
drivers/gpio/gpio-mockup.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-mockup.c
b/drivers/gpio/gpio-mockup.c
index c6dadac70593234c7e7be4e0a977c65446c9a11b..c18d011770c82cd6f57868d817bfe51adc0de841 100644
(file)
--- 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
,
};
/*