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)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:24:17 +0000 (09:24 +0900)
commitef57f7911ece40e35e0fa42a178307ddc1909e4f
tree65b2f19ae279efa6c993c1d3c10323f67f2d1aab
parent194792d97c2feaa9407497ceafd74d03bd1644da
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