[PATCH 1/1] regulator/fixed: set constraints.apply_uV to 0
Richard Zhao
richard.zhao at freescale.com
Fri Dec 30 05:38:31 EST 2011
On Fri, Dec 30, 2011 at 10:30:27AM +0000, Mark Brown wrote:
> On Fri, Dec 30, 2011 at 02:06:53PM +0800, Richard Zhao wrote:
> > From: Richard Zhao <richard.zhao at freescale.com>
> >
> > Fix fixed regulator failed to call regulator_register.
> >
> > Fixed regulator does not support set voltage operation, so we
> > don't need apply_uV.
>
> No, the regulator drivers shouldn't be fiddling around with their
> constraints. Generally the answer is that users shouldn't set
> constraints that won't work, or perhaps the API needs to be more
> forgiving.
So what's your suggestion of the issue? Below fixed regulator failed
to register.
reg_2P5V: regulator-2P5V {
compatible = "regulator-fixed";
regulator-name = "2P5V";
regulator-min-microvolt = <2500000>;
regulator-max-microvolt = <2500000>;
regulator-always-on;
}
Richard
More information about the linux-arm-kernel
mailing list