Re: [PATCH 2/2] regulator: core: Allow enable GPIO to be specified using GPIOD
From: Mark Brown
Date: Tue Nov 29 2016 - 06:46:06 EST
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.
Attachment:
signature.asc
Description: PGP signature