[PATCH 1/1] regulator/fixed: set constraints.apply_uV to 0
Mark Brown
broonie at opensource.wolfsonmicro.com
Fri Dec 30 20:02:40 EST 2011
On Fri, Dec 30, 2011 at 07:08:43PM +0800, Richard Zhao wrote:
> On Fri, Dec 30, 2011 at 10:48:50AM +0000, Mark Brown wrote:
> > It shouldn't actually be passing on the constraint setting the voltage
> > when it constructs the constraints.
> --- a/drivers/regulator/of_regulator.c
> +++ b/drivers/regulator/of_regulator.c
> @@ -34,9 +34,6 @@ static void of_get_regulation_constraints(struct device_node *np,
> /* Voltage change possible? */
> if (constraints->min_uV != constraints->max_uV)
> constraints->valid_ops_mask |= REGULATOR_CHANGE_VOLTAGE;
> - /* Only one voltage? Then make sure it's set. */
> - if (constraints->min_uV == constraints->max_uV)
> - constraints->apply_uV = true;
No! That's going to break *all* other users.
More information about the linux-arm-kernel
mailing list