regulator: lp8788: Implement list_voltage for lp8788_ldo_voltage_fixed_ops
authorAxel Lin <axel.lin@ingics.com>
Mon, 1 Apr 2013 15:28:48 +0000 (23:28 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 3 Apr 2013 17:46:29 +0000 (18:46 +0100)
commitb5366e5edc2014f0c86ed6fdad6fc9c24b7fad2c
treee8a2877b7376105dd05781467fae1b331a13471d
parent80abd60d9891fb1ba8cd93ef4df9320ac5569d70
regulator: lp8788: Implement list_voltage for lp8788_ldo_voltage_fixed_ops

For fixed voltage, we can just set min_uV and use regulator_list_voltage_linear
for list_voltage callback. Regulator core will call list_voltage(rdev, 0) if
both get_voltage get_voltage_sel are not implemented. Thus we can also remove
lp8788_ldo_fixed_get_voltage() function.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/lp8788-ldo.c