Re: [PATCH] regulator: Set apply_uV only when min and max voltagesare defined

From: Mark Brown
Date: Wed Jan 25 2012 - 06:22:59 EST


On Wed, Jan 25, 2012 at 11:15:12AM +0100, Karol Lewandowski wrote:
> On 25.01.2012 10:31, Karol Lewandowski wrote:

> >apply_uV is errornously set when regulator is instantiated from device
> >tree, even when it doesn't contain any voltage constraints.

> While this fixes obvious error I doubt that apply_uV should be set
> based on min max equality. It have required fix to fixed
> regulator[1]

No, I think this is fine. The only reason the fixed voltage regulator
required anything was that it overloads the constraint voltage values to
specify the voltage which we probably shouldn't have done in the first
place. If the device is can't change voltages specifying a voltage
range for changes is silly.

> as well for max8997[2]. It'll probably require fixes in other places too.

The big problem there seems like specifying voltages in the first place,
if we know what device it is we should already know what's going on.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/