Skip to contentSkip to conversation

ARM: OMAP: Rename twl4030_ to twl_ in twl-regulator.c to make it generic reg

PATCH Superseded [email protected] 1 participant 1 message Jul 14, 2009

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 95d92db..f40768b 100644
@@ -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