regulator: tps65912: Use simple equations to get register address
authorAxel Lin <axel.lin@gmail.com>
Mon, 12 Mar 2012 22:40:48 +0000 (06:40 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 13 Mar 2012 23:19:34 +0000 (23:19 +0000)
The address of ctrl and sel registers can be calculated by simple equations.
This patch simplifies the implementation in tps65912_get_ctrl_register and
implements tps65912_get_sel_register to replace tps65912_get_dcdc_sel_register
and tps65912_get_ldo_sel_register.

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