diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-06-12 20:08:30 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-17 20:51:44 +0100 |
commit | a967fbfaca0a979fc34c1097b37d824039a709b1 (patch) | |
tree | 5c7dff65ec2d0ecab3679c9dfb88814da53dffb2 /drivers/regulator/tps65023-regulator.c | |
parent | b4bc9ef6253578ecc71eec79a7dd423d0a282a4b (diff) |
regulator: wm8350: Use wm8350_ldo_list_voltage instead of open code to verify selected voltage
Call wm8350_ldo_list_voltage() instead of open code to verify selected voltage
falls within specified range.
Use wm8350_ldo_list_voltage() here is less error prone.
wm8350_ldo_val_to_mvolts() is only used in wm8350_ldo_list_voltage now, so
remove it and move the implementation to wm8350_ldo_list_voltage().
This patch also include below small changes in wm8350_ldo_map_voltage:
1. wm8350_ldo_map_voltage() returns selector, thus rename variable mV to sel.
2. Use DIV_ROUND_UP macro to calculate selector.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/tps65023-regulator.c')
0 files changed, 0 insertions, 0 deletions