lkml.org 
[lkml]   [2014]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] gpio-lynxpoint: force gpio_get() to return "1" and "0" only
From
On Thu, Mar 27, 2014 at 2:02 PM, Mathias Nyman
<mathias.nyman@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.blin@intel.com>
> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>

Patch applied.

Yours,
Linus Walleij


\
 
 \ /
  Last update: 2014-03-28 22:21    [W:0.030 / U:2.636 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site