commit | 241896ce8d112f10dae5538be41fad9eeb9e5e46 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Wed Apr 10 14:46:20 2013 +0800 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Tue Apr 16 12:23:27 2013 +0100 |
tree | 153ba7a7da953356171e09eb0cd37a9477d61c01 | |
parent | 375dc9c141b4d62b92bb171817039ef764c61d9f [diff] |
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>