git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f86b7c7
)
gpio: generic: clamp retured value to [0,1]
author
Linus Walleij
<linus.walleij@linaro.org>
Wed, 5 Feb 2014 13:08:02 +0000
(14:08 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Thu, 6 Feb 2014 09:33:48 +0000
(10:33 +0100)
The generic GPIO would return 0 for low generic GPIO, and
something != 0 for high GPIO. Let's make this sane by clamping
the returned value to [0,1].
Reported-by: Evgeny Boger <boger@contactless.ru>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-generic.c
patch
|
blob
|
history
diff --cc
drivers/gpio/gpio-generic.c
Simple merge