regulator: lp3971: Convert to get_voltage_sel
authorAxel Lin <axel.lin@ingics.com>
Mon, 10 Dec 2012 11:46:52 +0000 (19:46 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 24 Dec 2012 16:26:50 +0000 (16:26 +0000)
commitf38482fa700f18b72afbbaef8c4c4769c68c88ce
tree8b77d00a3bd16ef6ae238ecd0d07bcdceed46b16
parenta49f0d1ea3ec94fc7cf33a7c36a16343b74bd565
regulator: lp3971: Convert to get_voltage_sel

regulator_list_voltage_table() returns -EINVAL if selector >= n_voltages.
Thus we don't need to check if reg is greater than BUCK_TARGET_VOL_MAX_IDX in
lp3971_dcdc_get_voltage_sel.

BUCK_TARGET_VOL_MIN_IDX and BUCK_TARGET_VOL_MAX_IDX are not used, remove them.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/lp3971.c