regulator: core: provide fixed voltage in desc for single voltage rail
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 10 Sep 2013 10:15:05 +0000 (15:45 +0530)
committerMark Brown <broonie@linaro.org>
Tue, 10 Sep 2013 17:19:52 +0000 (18:19 +0100)
If given rail has the single voltage (n_voltages = 1) then provide the
rail voltage through regulator descriptor so that core can use this
value for finding voltage.

This will avoid the implementation of the callback for get_voltage() or
list_voltage() callback on regulator driver.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>

No differences found