diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2014-02-05 14:08:02 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2015-12-15 14:09:12 +0100 |
commit | 253be8568aca5be9b7d4b1986da47fb49eb04f09 (patch) | |
tree | a40f90f7aa493b93f28a3dc05035a592fda1f5ae /include/net/ip6_fib.h | |
parent | 8f237ebe42f2cb911245369276a6b3043c2815f2 (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 'include/net/ip6_fib.h')
0 files changed, 0 insertions, 0 deletions