]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit62a53d3619968f83805bf2f248c5ef25f5d395e4
treed79bd5d5fda1257527cdbc9469706bd468708bcb
parentd36c9d41ccc2a7c8e5907bf0f88fe2a1721a0188
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