Linus Walleij 25b35da7f4 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>
2014-02-06 10:33:48 +01:00
..
2013-10-29 18:26:14 -07:00
2013-12-12 14:28:12 +01:00
2012-11-28 11:39:59 -08:00
2013-12-04 14:48:17 +01:00
2013-08-16 15:24:35 +02:00
2012-11-28 11:39:33 -08:00
2014-01-21 10:09:12 -08:00
2014-01-21 10:09:12 -08:00
2013-08-16 15:24:35 +02:00
2013-08-16 15:24:35 +02:00
2013-12-09 14:04:37 +01:00
2012-11-28 11:39:59 -08:00
2013-06-17 07:47:33 +02:00
2013-12-12 14:33:14 +01:00
2014-01-21 10:09:12 -08:00
2014-01-08 15:07:28 +01:00
2014-01-23 18:49:36 -08:00