[PATCH 2/2] regulator: core: Error on not always_on dummy regulators

Mark Brown broonie at kernel.org
Tue Feb 25 07:26:44 EST 2014


On Tue, Feb 25, 2014 at 11:03:47AM +0100, Markus Pargmann wrote:
> It does not make sense to have dummy/fixed regulators that are not
> always_on. This patch adds a check in the set_machine_constraints
> function for this case and returns -EINVAL if such a regulator is
> registered.

Such a regulator isn't going to be useful in a system but that doesn't
mean that they shouldn't be registerable since that allows people to
look at their state.  For example a device might have some GPIO managed
regulators where the GPIO is tied low if the regulator isn't in use in
the system.
-------------- 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/20140225/d7f50849/attachment.sig>


More information about the linux-arm-kernel mailing list