regulator: tps65910: correct init value of n_voltages
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 9 Jul 2012 14:57:13 +0000 (20:27 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 10 Jul 2012 16:16:05 +0000 (17:16 +0100)
Recent change in the core driver to get the maximum voltage
is based on the (n_voltages -1) steps of voltage.
For the tps65910, the (n_voltages -1)th step voltage is
calculated based on the callback function list_voltage.
This function direct maps the datasheet and adjust the
first few steps for initial voltage as per datasheet,
and hence initialize the n_voltages based on datasheet.

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

No differences found