On Tue, Aug 17, 2010 at 07:28:06PM +0100, Alan Cox wrote:
The regulator API always specifies voltages in ranges, picking the
lowest possible voltage from the range.
One reason for this is that it allows us to finesse the mismatches
between the fixed steps that regulators offer and the requirements of
consumers - we don't needlessly fail to set a voltage due to a few
milivolts difference that the consumer doesn't care about. The other
reason is that it maps very well onto a lot of applications which do
have fairly wide acceptable ranges. For things like DVFS lowering the
frequency will typically reduce the minimum voltage required by the
device but will not affect the maximum voltage it can tolerate so we
allow the driver to specify the full range it can operate at and then
deliver the maximum power saving we can within the constraints of the
system.
--