regulator: ab8500: Use regulator_list_voltage_linear for fixed voltage
authorAxel Lin <axel.lin@ingics.com>
Mon, 25 Mar 2013 06:59:00 +0000 (14:59 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 25 Mar 2013 10:19:52 +0000 (10:19 +0000)
commit5689e830745b39dbab895e5e8df3f962cb7eecac
treedff7d280172b92746119adf37e1403f3968b9c4d
parent328a5369664d09e9082a8e814a9b2dcdfb7f519b
regulator: ab8500: Use regulator_list_voltage_linear for fixed voltage

Both ab8500_regulator_mode_ops and ab8500_regulator_ops do not have volt_table
setting, thus we can not use regulator_list_voltage_table for them.
However, they have min_uV setting with n_voltages = 1, so use
regulator_list_voltage_linear instead.

Also remove setting set_voltage_time_sel for ab8500_regulator_mode_ops.
It is used only for fixed voltage, so it does not need to implement
set_voltage_time_sel.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/ab8500.c