regulator: twl: Convert twl4030ldo_ops to get_voltage_sel
authorAxel Lin <axel.lin@ingics.com>
Sat, 16 Feb 2013 02:09:54 +0000 (10:09 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 1 Mar 2013 08:03:49 +0000 (16:03 +0800)
commit6949fbe5b2d7b73dfeddeb470a56385ca36b4827
tree0687d8e0a70fc5d2389def3ec2aab31166fd7262
parent2730fd82cbb922e6be8df08ba32c21be41757d3d
regulator: twl: Convert twl4030ldo_ops to get_voltage_sel

This fixes an inconsistent behavior between list_voltage() and get_voltage()
because current implementation of get_voltage() does not check the case
IS_UNSUP() is true.

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