[PATCH 2/2] ASoC: sgtl5000: clean up sgtl5000_enable_regulators()

Mark Brown broonie at kernel.org
Tue Dec 17 07:46:57 EST 2013


On Tue, Dec 17, 2013 at 08:39:48PM +0800, Shawn Guo wrote:

> Hmm, I do not quite follow.  The regulator core needs to know whether a
> regulator device is present or absent, before the regulator is
> registered, so that regulator core can decide to return -EDEFER_PROBE
> or -ENODEV when consumer calls regulator_get_optional() to get the
> regulator.  Are you saying platform can call
> regulator_has_full_constraints() to help regulator core to make this
> decision?  I do not understand how it works.

It tells the core that it now knows about all regulator mappings so it
knows if it's not got a mapping none will ever appear.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131217/fd201ce3/attachment.sig>


More information about the linux-arm-kernel mailing list