lkml.org 
[lkml]   [2011]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: power: bq20z75: problem with optional battery detect gpio feature
On Mon, Jul 25, 2011 at 03:55:34PM +0200, Andrea Galbusera wrote:
> Is the in-object feature really optional?
> If battery_detect field in my bq20z75_platform_data structure is not
> explicitly set, I suspect the driver ends up requesting an irq for the
> GPIO number 0. This look indesirable.

set the gpio to -EINVAL. gpio 0 is a valid gpio number. Maybe we should
remap zero to 1, 1 to 2 and so forth... Grant ?

--
balbi
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2011-07-25 16:03    [from the cache]
©2003-2011 Jasper Spaans