Re: [PATCH] gpio-lynxpoint: force gpio_get() to return "1" and "0" only

2014-03-28 Thread Linus Walleij
On Thu, Mar 27, 2014 at 2:02 PM, Mathias Nyman wrote: > 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 > Signed-off-by: Mathias Nyman Patch applied. Yours, Linus Walleij -- To

Re: [PATCH] gpio-lynxpoint: force gpio_get() to return 1 and 0 only

2014-03-28 Thread Linus Walleij
On Thu, Mar 27, 2014 at 2:02 PM, Mathias Nyman mathias.ny...@linux.intel.com wrote: 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.b...@intel.com Signed-off-by: Mathias Nyman

[PATCH] gpio-lynxpoint: force gpio_get() to return "1" and "0" only

2014-03-27 Thread Mathias Nyman
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 Signed-off-by: Mathias Nyman --- drivers/gpio/gpio-lynxpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] gpio-lynxpoint: force gpio_get() to return 1 and 0 only

2014-03-27 Thread Mathias Nyman
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.b...@intel.com Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/gpio/gpio-lynxpoint.c | 2 +- 1 file changed, 1