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