]> git.karo-electronics.de Git - karo-tx-linux.git/commit
regulator: tps65910: Convert to use regulator_map_voltage_ascend
authorAxel Lin <axel.lin@ingics.com>
Sat, 20 Apr 2013 02:30:17 +0000 (10:30 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 23 Apr 2013 10:41:06 +0000 (11:41 +0100)
commit9fa8175f0f6ebe1ac1495a3d4fa61cc31e0843c0
treee8c6cfeef7b0d1cc36e4767f1e9c154bec0877cb
parentb50003b69dbb60097cf55c44f8e2b4dc25bd0b12
regulator: tps65910: Convert to use regulator_map_voltage_ascend

All regulators have ascendant voltage list in this driver.
Some regulators have more than 200 supported voltages.
e.g.
For TPS65910_REG_VDD1 and TPS65910_REG_VDD2:
n_voltages = VDD1_2_NUM_VOLT_FINE * VDD1_2_NUM_VOLT_COARSE
           = 73 * 3
           = 219

Thus it worth converting to regulator_map_voltage_ascend rather than use
default regulator_map_voltage_iterate.

For consistent, convert all regulators to regulator_map_voltage_ascend.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/tps65910-regulator.c