From: Linus Walleij Date: Wed, 5 Feb 2014 13:08:02 +0000 (+0100) Subject: gpio: generic: clamp retured value to [0,1] X-Git-Tag: v3.15-rc1~105^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25b35da7f4cce82271859f1b6eabd9f3bd41a2bb;p=pandora-kernel.git 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 Reviewed-by: Alexandre Courbot Signed-off-by: Linus Walleij --- Reading git-diff-tree failed