Re: power: bq20z75: problem with optional battery detect gpio feature

From: Felipe Balbi
Date: Mon Jul 25 2011 - 10:00:05 EST


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

Attachment: signature.asc
Description: Digital signature