]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
regulator: ab8500: Optimize ab8540_aux3_regulator_get_voltage_sel
authorAxel Lin <axel.lin@ingics.com>
Wed, 10 Apr 2013 06:46:20 +0000 (14:46 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 16 Apr 2013 11:23:27 +0000 (12:23 +0100)
commit241896ce8d112f10dae5538be41fad9eeb9e5e46
tree153ba7a7da953356171e09eb0cd37a9477d61c01
parent375dc9c141b4d62b92bb171817039ef764c61d9f
regulator: ab8500: Optimize ab8540_aux3_regulator_get_voltage_sel

We can save a register read operation in some case if read
expand_register first.
If info->expand_register.voltage_mask bit is set, no need to read
voltage_reg.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/ab8500.c