regulator: Rename s5m8767_convert_voltage to s5m8767_convert_voltage_to_sel
authorAxel Lin <axel.lin@gmail.com>
Fri, 9 Mar 2012 03:31:08 +0000 (11:31 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 11 Mar 2012 20:49:35 +0000 (20:49 +0000)
commit5b5e977ce71cab973d9f8c7d5303832a2bafa92c
treed79bd5d5fda1257527cdbc9469706bd468708bcb
parent4d984d1cd838435cf1180ab9ffbab24cfdbf7515
regulator: Rename s5m8767_convert_voltage to s5m8767_convert_voltage_to_sel

This function finds the smallest voltage that falls within the specified range,
and then returns the selector. This rename makes the intention more clear.

Also remove unneeded local variables min_vol and max_vol in s5m8767_set_voltage
and s5m8767_set_voltage_buck.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/s5m8767.c