Skip to content
Commit 25b35da7 authored by Linus Walleij's avatar Linus Walleij
Browse files

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: default avatarEvgeny Boger <boger@contactless.ru>
Reviewed-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent f86b7c70
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment