Re: [PATCH 02/11] GPIO: DA9052 GPIO module v1

From: Mark Brown
Date: Thu Jun 30 2011 - 11:32:59 EST


On Thu, Jun 30, 2011 at 05:10:31PM +0530, Ashish Jangam wrote:

> > Why insist on platform data? gpiolib can dynamically allocate a GPIO
> > range to the device.

> Do you mean to use gpiochip_reserve() in machine file and not to have
> ngpio and base defined in GPIO platform driver but, this will fail the
> call to gpiochip_add()?

No, I mean that you should allow gpiolib to allocate a GPIO range if one
is not already allocated like other gpiolib drivers do by supplying -1
as the base.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/