regulator: tps6524x: Convert to regulator_list_voltage_table()
authorAxel Lin <axel.lin@gmail.com>
Wed, 20 Jun 2012 14:30:15 +0000 (22:30 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 2 Jul 2012 17:26:02 +0000 (18:26 +0100)
commitcac87fd34ebd79a954321f78acf38abcc69e1308
tree189a8a85f7856a618c5b1a670dbdab99c6b28fd7
parent744c62eb65a1c3bb2196ded1a1d2922cf6f2ce80
regulator: tps6524x: Convert to regulator_list_voltage_table()

This patch adds fixed_5000000_voltage table for fixed voltage,
so we can convert regulator_ops to regulator_list_voltage_table.

We can differentiate fixed voltage by checking rdev->desc->n_voltages == 1,
thus remove the FIXED_VOLTAGE flag usage.

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