]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/regulator/tps65023-regulator.c
regulator: tps65023: Convert to regulator_list_voltage_table
authorAxel Lin <axel.lin@gmail.com>
Tue, 19 Jun 2012 09:12:18 +0000 (17:12 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 19 Jun 2012 11:06:26 +0000 (12:06 +0100)
commitba3bd8a301c76838faded10dbe2ecdfdc2eb5d7e
tree15584b5813a1286b95bb6b7df3d0d9cef7a5199f
parent2c19ad43d1a4b0e376a0c764e3c2350afd018fac
regulator: tps65023: Convert to regulator_list_voltage_table

In current mapping table settings, min_uV/max_uV are always
equal to volt_table[0] and volt_table[table_len -1].
Thus remove min_uV and max_uV from struct tps_info.

The table based mapping with table_len == 1 means fixed voltage.
So we don't need fixed flag to differentiate if it is fixed or not.

This patch adds DCDC_FIXED_3300000_VSEL_table and DCDC_FIXED_1800000_VSEL_table
for fixed voltage cases. So we can convert tps65023_dcdc_ops to
regulator_list_voltage_table. This makes the code simpler.

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