]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit780c086335f26e8255df8f762913d8de7a66b70d
treee8a2877b7376105dd05781467fae1b331a13471d
parent982403e54b96d99ec899f7a66cb5ebf89e856ed4
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