]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
regulator: Use mc13xxx_reg_write instead of mc13xxx_reg_rmw in mc13892_sw_regulator_s...
authorAxel Lin <axel.lin@gmail.com>
Mon, 9 May 2011 09:49:40 +0000 (17:49 +0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 27 May 2011 09:34:37 +0000 (10:34 +0100)
commit98ea5c218ed150bf7cabb879db4fc2c106b6fa5b
tree778c910cd569ec3813b6fdd05eb81532a860a3d1
parentbf5892a8167e4aa5a9a6d72f803fde850e0c5753
regulator: Use mc13xxx_reg_write instead of mc13xxx_reg_rmw in mc13892_sw_regulator_set_voltage

Currently, we call mc13xxx_reg_read and mc13xxx_reg_rmw for the same register.
This can be converted to simply a mc13xxx_reg_read and a mc13xxx_reg_write,
thus save a redundant register read.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/mc13892-regulator.c