]> git.baikalelectronics.ru Git - kernel.git/commit
gpio-lynxpoint: force gpio_get() to return "1" and "0" only
authorMathias Nyman <mathias.nyman@linux.intel.com>
Thu, 27 Mar 2014 13:02:08 +0000 (15:02 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 28 Mar 2014 20:52:35 +0000 (21:52 +0100)
commit3f90f2b1048d3b80737b0fe09122c51095f1fd1e
treea344b34557258337eb513fb8d53e6c8e1fca31c6
parent2bfce1127e0a06b8fd277e9f9a7379e1b5af3b4f
gpio-lynxpoint: force gpio_get() to return "1" and "0" only

Don't return the IN_LVL_BIT directly, a high gpio line returned
value "1073741824" intestead of "1" because IN_LVL_BIT is BIT(30)

Tested-by: Jerome Blin <jerome.blin@intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-lynxpoint.c