]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
regulator: lp3972: Convert to get_voltage_sel
authorAxel Lin <axel.lin@ingics.com>
Fri, 28 Dec 2012 00:23:16 +0000 (08:23 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 Jan 2013 11:07:05 +0000 (11:07 +0000)
commitc8c14a393ba3329552147870103f2d004bbcbcac
tree364a2ccd44ea20c1166a7469a5c6c73cf36a2b52
parentd1c3ed669a2d452cacfb48c2d171a1f364dae2ed
regulator: lp3972: 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 LP3972_BUCK_VOL_MAX_IDX in
lp3972_[ldo|dcdc]_get_voltage_sel.

LP3972_BUCK_VOL_MIN_IDX and LP3972_BUCK_VOL_MAX_IDX are not used, remove them.

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