ARM: OMAP: Rename twl4030_ to twl_ in twl-regulator.c to make it generic reg
PATCH 4/4 ARM: OMAP: Rename twl4030_ to twl_ in twl-regulator.c to make it generic reg
From: Rajendra Nayak <[email protected]>
This patch renames all twl4030_ functions to twl so that regulator driver can be reused by Triton - TWL4030 and Phoenix - TWL6030.
Signed-off-by Rajendra Nayak <[email protected]>
Signed-off-by Balaji T K <[email protected]>
Signed-off-by Santosh Shilimkar <[email protected]>
--- drivers/mfd/twl-core.c | 3 +- drivers/regulator/twl-regulator.c | 191 +++++++++++++++++++------------------ 2 files changed, 100 insertions(+), 94 deletions(-)
drivers/mfd/twl-core.c +2 -1
@@ -124,6 +124,7 @@#define KEYPAD_SUB_CHIP_ID SUB_CHIP_ID2#define BCI_SUB_CHIP_ID SUB_CHIP_ID3#define RTC_SUB_CHIP_ID SUB_CHIP_ID3 +#define REG_SUB_CHIP_ID SUB_CHIP_ID3/* Last - for index max*/ #define TWL4030_MODULE_LAST TWL4030_MODULE_SECURED_REG
@@ -463,7 +464,7 @@ add_regulator_linked(int num, struct regulator_init_data *pdata, }/* NOTE: we currently ignore regulator IRQs, e.g. for short circuits */ -return add_numbered_child (3 ,"twl4030_reg" , num, +return add_numbered_child (REG_SUB_CHIP_ID ,"twl_reg" , num, pdata,sizeof (*pdata), false,0 ,0 ); }
drivers/regulator/twl-regulator.c +98 -93
411 lines not on this page · raw message
Signature · 1 line
1.5.4.7