aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/asm-generic/gpio.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2014-02-05 14:08:02 +0100
committerLinus Walleij <linus.walleij@linaro.org>2014-02-06 10:33:48 +0100
commit25b35da7f4cce82271859f1b6eabd9f3bd41a2bb (patch)
tree4ac95fc298a149ec24c8517bbf04db27d1c9aa6e /include/asm-generic/gpio.h
parentgpio: clps711x: Add missing .owner to struct gpio_chip (diff)
downloadwireguard-linux-25b35da7f4cce82271859f1b6eabd9f3bd41a2bb.tar.xz
wireguard-linux-25b35da7f4cce82271859f1b6eabd9f3bd41a2bb.zip
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/asm-generic/gpio.h')
0 files changed, 0 insertions, 0 deletions