Messages in this thread | | | Date | Tue, 25 Feb 2014 21:26:44 +0900 | From | Mark Brown <> | Subject | Re: [PATCH 2/2] regulator: core: Error on not always_on dummy regulators |
| |
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. [unhandled content-type:application/pgp-signature] | |