Re: [PATCH 2/2] regulator: core: Allow enable GPIO to be specified using GPIOD
From: Charles Keepax
Date: Tue Nov 29 2016 - 06:52:59 EST
On Tue, Nov 29, 2016 at 11:45:47AM +0000, Mark Brown wrote:
> On Tue, Nov 29, 2016 at 11:30:45AM +0000, Charles Keepax wrote:
> > The regulator subsystem has used GPIOs internally for a while, however,
> > end drivers must still specify their enable GPIO using a GPIO number. This
> > patch allows the end drivers to specify the enable GPIO using GPIOD
> > directly.
>
> The reason we don't support descriptors is that the GPIO API currently
> doesn't support having more than one user of a descriptor but GPIO
> enables for regulators get shared often enough to be interesting. If
> drivers start using this then that'd mean that the shared enable support
> would become erratic depending on which driver was in use.
Ah ok thanks, guess we can drop this one then. The first patch in
the chain is hopefully still good though.
Thanks,
Charles