summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2014-02-05 14:08:02 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-12-15 14:09:12 +0100
commit253be8568aca5be9b7d4b1986da47fb49eb04f09 (patch)
treea40f90f7aa493b93f28a3dc05035a592fda1f5ae /tools
parent8f237ebe42f2cb911245369276a6b3043c2815f2 (diff)
gpio: generic: clamp retured value to [0,1]
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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions