Messages in this thread |  | | Date | Wed, 9 Jan 2013 15:40:09 +0000 | From | Mark Brown <> | Subject | Re: [PATCH RFT] regulator: lp8788-ldo: Use ldo->en_pin to check if regulator is enabled by external pin |
| |
On Wed, Jan 09, 2013 at 02:34:40AM +0000, Kim, Milo wrote:
> - goto wash; > + > + if (ret == -EBUSY && config->is_gpio_shared) > + shared_ena_pin = true; > + > + if (!shared_ena_pin) > + goto wash;
It'd be much nicer if we were able to just keep a list of GPIOs controlling regulators as we see them and automatically work out if they're shared. Probably we should just refactor the code so that the GPIO object is a separate thing rather than just storing the state directly in the regulator struct. [unhandled content-type:application/pgp-signature] |  |