gpio: rcar: clamp returned value to [0,1]
authorJürg Billeter <j@bitron.ch>
Tue, 24 Jun 2014 02:19:50 +0000 (04:19 +0200)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:15:30 +0000 (11:15 +0100)
commitd0a0d548a9f7c06a72d41d9888565bc03ad21499
tree8acc6d467f9ce02679aaf9b41e0149033f968163
parentbff0eecb963c03bd84117ed0bebd486b7c4d676b
gpio: rcar: clamp returned value to [0,1]

While it will be clamped to bool by gpiolib, let's make this sane
in the driver as well.

Signed-off-by: Jürg Billeter <j@bitron.ch>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
(cherry picked from commit 7cb5409b10d9f8316ca2539591acb6a5f7fd4139)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/gpio/gpio-rcar.c