From: Axel Lin Date: Mon, 12 Mar 2012 22:40:48 +0000 (+0800) Subject: regulator: tps65912: Use simple equations to get register address X-Git-Tag: v3.4-rc1~168^2~4^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42b5efe4f9aa40b3b0a20149fd7357d9d6c96959;p=pandora-kernel.git regulator: tps65912: Use simple equations to get register address 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed