]> git.karo-electronics.de Git - linux-beck.git/commit
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)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 9 Jul 2014 10:22:44 +0000 (12:22 +0200)
commit7cb5409b10d9f8316ca2539591acb6a5f7fd4139
treec36d6195b4d9eac0d4b64f3adbd97d5a6d33520f
parentb41acf8869eac0737327380d23068b2e3f10a12a
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>
drivers/gpio/gpio-rcar.c