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>
Mon, 9 May 2011 12:51:25 +0000 (13:51 +0100)
commit0f352239865818658a12fe1daa8c4adc35f4987c
treea1b5d5b3202f9f83289b79a2075b2491eb0267dc
parentbf44b94b8dd0e9f2a0636c11bd9b2435a5eaedcb
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