Messages in this thread | | | Date | Thu, 30 Jun 2011 08:32:45 -0700 | From | Mark Brown <> | Subject | Re: [PATCH 02/11] GPIO: DA9052 GPIO module v1 |
| |
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.
| |