Skip to contentSkip to conversation

mfd: twl: fix twl4030 rename for remaining driver, board files

PATCH Superseded [email protected] 5 participants 7 messages Dec 15, 2009 – Dec 16, 2009

Subsystems (7)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: twl: fix twl4030 rename for remaining driver, board files

From: Balaji T K <[email protected]>

This patch renames include twl4030.h to include twl.h and also renames twl4030_i2c_ routines

---
 arch/arm/mach-omap2/board-cm-t35.c           |    2 +-
 arch/arm/mach-omap2/board-igep0020.c         |    2 +-
 arch/arm/mach-omap2/board-omap3evm.c         |    2 +-
 arch/arm/mach-omap2/board-omap3touchbook.c   |    2 +-
 arch/arm/mach-omap2/board-rx51-peripherals.c |    2 +-
 arch/arm/mach-omap2/board-zoom-peripherals.c |    2 +-
 drivers/mfd/twl4030-codec.c                  |   10 +++++-----
 drivers/video/omap/lcd_ldp.c                 |    4 ++--
 drivers/video/omap/lcd_omap2evm.c            |   10 +++++-----
 drivers/video/omap/lcd_omap3beagle.c         |    2 +-
 drivers/video/omap/lcd_omap3evm.c            |   10 +++++-----
 drivers/video/omap/lcd_overo.c               |    2 +-
 sound/soc/omap/sdp3430.c                     |    6 +++---
 13 files changed, 28 insertions(+), 28 deletions(-)
arch/arm/mach-omap2/board-cm-t35.c +1 -1
index 22c4529..f62d59e 100644
@@ -29,7 +29,7 @@
 #include <linux/gpio.h>
 
 #include <linux/i2c/at24.h>
-#include <linux/i2c/twl4030.h>
+#include <linux/i2c/twl.h>
 #include <linux/regulator/machine.h>
 
 #include <asm/mach-types.h>
arch/arm/mach-omap2/board-igep0020.c +1 -1
index fa62e80..2dd3cd8 100644
@@ -19,7 +19,7 @@
 #include <linux/interrupt.h>
 
 #include <linux/regulator/machine.h>
-#include <linux/i2c/twl4030.h>
+#include <linux/i2c/twl.h>
 
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
arch/arm/mach-omap2/board-omap3evm.c +1 -1
index 5efc2e9..50d89a2 100644
@@ -26,7 +26,7 @@
 
 #include <linux/spi/spi.h>
 #include <linux/spi/ads7846.h>
-#include <linux/i2c/twl4030.h>
+#include <linux/i2c/twl.h>
 #include <linux/usb/otg.h>
 #include <linux/smsc911x.h>
 
arch/arm/mach-omap2/board-omap3touchbook.c +1 -1
index c9e5ebb..fe3d22c 100644
@@ -34,7 +34,7 @@
 #include <linux/spi/ads7846.h>
 
 #include <linux/regulator/machine.h>
-#include <linux/i2c/twl4030.h>
+#include <linux/i2c/twl.h>
 
 #include <mach/hardware.h>
 #include <asm/mach-types.h>
arch/arm/mach-omap2/board-rx51-peripherals.c +1 -1
index 15ce651..afe51aa 100644
@@ -16,7 +16,7 @@
 #include <linux/spi/spi.h>
 #include <linux/spi/wl12xx.h>
 #include <linux/i2c.h>
-#include <linux/i2c/twl4030.h>
+#include <linux/i2c/twl.h>
 #include <linux/clk.h>
 #include <linux/delay.h>
 #include <linux/regulator/machine.h>
arch/arm/mach-omap2/board-zoom-peripherals.c +1 -1
index f14baa3..13a4dd4 100755
@@ -14,7 +14,7 @@
 #include <linux/input.h>
 #include <linux/input/matrix_keypad.h>
 #include <linux/gpio.h>
-#include <linux/i2c/twl4030.h>
+#include <linux/i2c/twl.h>
 #include <linux/regulator/machine.h>
 
 #include <asm/mach-types.h>
drivers/mfd/twl4030-codec.c +5 -5
index 77b9149..700b149 100644
@@ -26,7 +26,7 @@
 #include <linux/kernel.h>
 #include <linux/fs.h>
 #include <linux/platform_device.h>
-#include <linux/i2c/twl4030.h>
+#include <linux/i2c/twl.h>
 #include <linux/mfd/core.h>
 #include <linux/mfd/twl4030-codec.h>
 
@@ -56,7 +56,7 @@ static int twl4030_codec_set_resource(enum twl4030_codec_res id, int enable)
 	struct twl4030_codec *codec = platform_get_drvdata(twl4030_codec_dev);
 	u8 val;
 
-	twl4030_i2c_read_u8(TWL4030_MODULE_AUDIO_VOICE, &val,
+	twl_i2c_read_u8(TWL4030_MODULE_AUDIO_VOICE, &val,
 			codec->resource[id].reg);
 
 	if (enable)
@@ -64,7 +64,7 @@ static int twl4030_codec_set_resource(enum twl4030_codec_res id, int enable)
 	else
 		val &= ~codec->resource[id].mask;
 
-	twl4030_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE,
+	twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE,
 					val, codec->resource[id].reg);
 
 	return val;
@@ -75,7 +75,7 @@ static inline int twl4030_codec_get_resource(enum twl4030_codec_res id)
 	struct twl4030_codec *codec = platform_get_drvdata(twl4030_codec_dev);
 	u8 val;
 
-	twl4030_i2c_read_u8(TWL4030_MODULE_AUDIO_VOICE, &val,
+	twl_i2c_read_u8(TWL4030_MODULE_AUDIO_VOICE, &val,
 			codec->resource[id].reg);
 
 	return val;
@@ -183,7 +183,7 @@ static int __devinit twl4030_codec_probe(struct platform_device *pdev)
 		dev_err(&pdev->dev, "Invalid audio_mclk\n");
 		return -EINVAL;
 	}
-	twl4030_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE,
+	twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE,
 					val, TWL4030_REG_APLL_CTL);
 
 	codec = kzalloc(sizeof(struct twl4030_codec), GFP_KERNEL);
drivers/video/omap/lcd_ldp.c +2 -2
index 6a260df..b4e464c 100644
@@ -24,7 +24,7 @@
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/delay.h>
-#include <linux/i2c/twl4030.h>
+#include <linux/i2c/twl.h>
 
 #include <mach/gpio.h>
 #include <plat/mux.h>
@@ -58,7 +58,7 @@
 #define TWL4030_VPLL2_DEV_GRP           0x33
 #define TWL4030_VPLL2_DEDICATED         0x36
 
-#define t2_out(c, r, v) twl4030_i2c_write_u8(c, r, v)
+#define t2_out(c, r, v) twl_i2c_write_u8(c, r, v)
 
 
 static int ldp_panel_init(struct lcd_panel *panel,
drivers/video/omap/lcd_omap2evm.c +5 -5
index e1a38ab..d6959a3 100644
@@ -24,7 +24,7 @@
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/gpio.h>
-#include <linux/i2c/twl4030.h>
+#include <linux/i2c/twl.h>
 
 #include <plat/mux.h>
 #include <plat/omapfb.h>
@@ -60,9 +60,9 @@ static int omap2evm_panel_init(struct lcd_panel *panel,
 	gpio_direction_output(LCD_PANEL_LR, 1);
 	gpio_direction_output(LCD_PANEL_UD, 1);
 
-	twl4030_i2c_write_u8(TWL4030_MODULE_LED, 0x11, TWL_LED_LEDEN);
-	twl4030_i2c_write_u8(TWL4030_MODULE_PWMA, 0x01, TWL_PWMA_PWMAON);
-	twl4030_i2c_write_u8(TWL4030_MODULE_PWMA, 0x02, TWL_PWMA_PWMAOFF);
+	twl_i2c_write_u8(TWL4030_MODULE_LED, 0x11, TWL_LED_LEDEN);
+	twl_i2c_write_u8(TWL4030_MODULE_PWMA, 0x01, TWL_PWMA_PWMAON);
+	twl_i2c_write_u8(TWL4030_MODULE_PWMA, 0x02, TWL_PWMA_PWMAOFF);
 	bklight_level = 100;
 
 	return 0;
@@ -100,7 +100,7 @@ static int omap2evm_bklight_setlevel(struct lcd_panel *panel,
 	u8 c;
 	if ((level >= 0) && (level <= 100)) {
 		c = (125 * (100 - level)) / 100 + 2;
-		twl4030_i2c_write_u8(TWL4030_MODULE_PWMA, c, TWL_PWMA_PWMAOFF);
+		twl_i2c_write_u8(TWL4030_MODULE_PWMA, c, TWL_PWMA_PWMAOFF);
 		bklight_level = level;
 	}
 	return 0;
drivers/video/omap/lcd_omap3beagle.c +1 -1
index ccec084..4644023 100644
@@ -23,7 +23,7 @@
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/gpio.h>
-#include <linux/i2c/twl4030.h>
+#include <linux/i2c/twl.h>
 
 #include <plat/mux.h>
 #include <plat/omapfb.h>
drivers/video/omap/lcd_omap3evm.c +5 -5
index 556eb31..65dce0a 100644
@@ -23,7 +23,7 @@
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/gpio.h>
-#include <linux/i2c/twl4030.h>
+#include <linux/i2c/twl.h>
 
 #include <plat/mux.h>
 #include <plat/omapfb.h>
@@ -62,9 +62,9 @@ static int omap3evm_panel_init(struct lcd_panel *panel,
 	gpio_direction_output(LCD_PANEL_LR, 1);
 	gpio_direction_output(LCD_PANEL_UD, 1);
 
-	twl4030_i2c_write_u8(TWL4030_MODULE_LED, 0x11, TWL_LED_LEDEN);
-	twl4030_i2c_write_u8(TWL4030_MODULE_PWMA, 0x01, TWL_PWMA_PWMAON);
-	twl4030_i2c_write_u8(TWL4030_MODULE_PWMA, 0x02, TWL_PWMA_PWMAOFF);
+	twl_i2c_write_u8(TWL4030_MODULE_LED, 0x11, TWL_LED_LEDEN);
+	twl_i2c_write_u8(TWL4030_MODULE_PWMA, 0x01, TWL_PWMA_PWMAON);
+	twl_i2c_write_u8(TWL4030_MODULE_PWMA, 0x02, TWL_PWMA_PWMAOFF);
 	bklight_level = 100;
 
 	return 0;
@@ -101,7 +101,7 @@ static int omap3evm_bklight_setlevel(struct lcd_panel *panel,
 	u8 c;
 	if ((level >= 0) && (level <= 100)) {
 		c = (125 * (100 - level)) / 100 + 2;
-		twl4030_i2c_write_u8(TWL4030_MODULE_PWMA, c, TWL_PWMA_PWMAOFF);
+		twl_i2c_write_u8(TWL4030_MODULE_PWMA, c, TWL_PWMA_PWMAOFF);
 		bklight_level = level;
 	}
 	return 0;
drivers/video/omap/lcd_overo.c +1 -1
index b0f86e5..1aab809 100644
@@ -21,7 +21,7 @@
 
 #include <linux/module.h>
 #include <linux/platform_device.h>
-#include <linux/i2c/twl4030.h>
+#include <linux/i2c/twl.h>
 
 #include <mach/gpio.h>
 #include <plat/mux.h>
sound/soc/omap/sdp3430.c +3 -3
index c071f96..3c85c0f 100644
@@ -24,7 +24,7 @@
 
 #include <linux/clk.h>
 #include <linux/platform_device.h>
-#include <linux/i2c/twl4030.h>
+#include <linux/i2c/twl.h>
 #include <sound/core.h>
 #include <sound/pcm.h>
 #include <sound/soc.h>
@@ -321,11 +321,11 @@ static int __init sdp3430_soc_init(void)
 	*(unsigned int *)sdp3430_dai[1].cpu_dai->private_data = 2; /* McBSP3 */
 
 	/* Set TWL4030 GPIO6 as EXTMUTE signal */
-	twl4030_i2c_read_u8(TWL4030_MODULE_INTBR, &pin_mux,
+	twl_i2c_read_u8(TWL4030_MODULE_INTBR, &pin_mux,
 						TWL4030_INTBR_PMBR1);
 	pin_mux &= ~TWL4030_GPIO6_PWM0_MUTE(0x03);
 	pin_mux |= TWL4030_GPIO6_PWM0_MUTE(0x02);
-	twl4030_i2c_write_u8(TWL4030_MODULE_INTBR, pin_mux,
+	twl_i2c_write_u8(TWL4030_MODULE_INTBR, pin_mux,
 						TWL4030_INTBR_PMBR1);
 
 	ret = platform_device_add(sdp3430_snd_device);
Signature · 1 line
1.5.4.7
#1 lore raw
Quoted 4 lines · On Tue, Dec 15, 2009 at 01:55:23PM +0100, ext [email protected] wrote:

From: Balaji T K <[email protected]>

This patch renames include twl4030.h to include twl.h
and also renames twl4030_i2c_ routines

remove the spaces above.

also, this patch doesn't apply neither on top of linus's master nor tony's master:

$ git am ~/check.diff
Applying: mfd: twl: fix twl4030 rename for remaining driver, board files
error: patch failed: drivers/video/omap/lcd_omap2evm.c:24
error: drivers/video/omap/lcd_omap2evm.c: patch does not apply
error: patch failed: drivers/video/omap/lcd_omap3beagle.c:23
error: drivers/video/omap/lcd_omap3beagle.c: patch does not apply
error: patch failed: drivers/video/omap/lcd_omap3evm.c:23
error: drivers/video/omap/lcd_omap3evm.c: patch does not apply
Patch failed at 0001 mfd: twl: fix twl4030 rename for remaining driver, board files
When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".

please rebase.

Signature · 1 line
balbi
#2 lore raw

Hi,

Quoted 16 lines · Balbi Felipe (Nokia-D/Helsinki)

also, this patch doesn't apply neither on top of linus's master nor tony's master:

$ git am ~/check.diff
Applying: mfd: twl: fix twl4030 rename for remaining driver, board files
error: patch failed: drivers/video/omap/lcd_omap2evm.c:24
error: drivers/video/omap/lcd_omap2evm.c: patch does not apply
error: patch failed: drivers/video/omap/lcd_omap3beagle.c:23
error: drivers/video/omap/lcd_omap3beagle.c: patch does not apply
error: patch failed: drivers/video/omap/lcd_omap3evm.c:23
error: drivers/video/omap/lcd_omap3evm.c: patch does not apply
Patch failed at 0001 mfd: twl: fix twl4030 rename for remaining driver, board files
When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".
Quoted 1 line

please rebase.

<fixed tony's address>

and btw, linux-omap doesn't have this problem (just yet). It's missing a merge.

Signature · 1 line
balbi
maintainer
#3 lore raw
Quoted 19 lines · Felipe Balbi

Hi,

Quoted 16 lines · Balbi Felipe (Nokia-D/Helsinki)

also, this patch doesn't apply neither on top of linus's master nor tony's master:

$ git am ~/check.diff
Applying: mfd: twl: fix twl4030 rename for remaining driver, board files
error: patch failed: drivers/video/omap/lcd_omap2evm.c:24
error: drivers/video/omap/lcd_omap2evm.c: patch does not apply
error: patch failed: drivers/video/omap/lcd_omap3beagle.c:23
error: drivers/video/omap/lcd_omap3beagle.c: patch does not apply
error: patch failed: drivers/video/omap/lcd_omap3evm.c:23
error: drivers/video/omap/lcd_omap3evm.c: patch does not apply
Patch failed at 0001 mfd: twl: fix twl4030 rename for remaining driver, board files
When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".
Quoted 6 lines
Quoted 1 line

please rebase.

<fixed tony's address>

and btw, linux-omap doesn't have this problem (just yet). It's missing a merge.

Let me try to catch up to this thread.

These twl rename patches have been through at least 4 revisions of changes, and they're still breaking compile?

The fix for the build breakage does not even apply?

And these are patches from TI for TI's own platform?

And they also break compile for x86?

Good thing these got stopped at for-next before hitting mainline.

Regards,

Tony

Acked-by on v1 1/1
#5 lore raw
In reply to [email protected]
Quoted 6 lines · On Tuesday 15 December 2009 14:55:23 ext [email protected] wrote:

From: Balaji T K <[email protected]>

This patch renames include twl4030.h to include twl.h and also renames twl4030_i2c_ routines

Quoted 15 lines
---
 arch/arm/mach-omap2/board-cm-t35.c           |    2 +-
 arch/arm/mach-omap2/board-igep0020.c         |    2 +-
 arch/arm/mach-omap2/board-omap3evm.c         |    2 +-
 arch/arm/mach-omap2/board-omap3touchbook.c   |    2 +-
 arch/arm/mach-omap2/board-rx51-peripherals.c |    2 +-
 arch/arm/mach-omap2/board-zoom-peripherals.c |    2 +-
 drivers/mfd/twl4030-codec.c                  |   10 +++++-----
 drivers/video/omap/lcd_ldp.c                 |    4 ++--
 drivers/video/omap/lcd_omap2evm.c            |   10 +++++-----
 drivers/video/omap/lcd_omap3beagle.c         |    2 +-
 drivers/video/omap/lcd_omap3evm.c            |   10 +++++-----
 drivers/video/omap/lcd_overo.c               |    2 +-
 sound/soc/omap/sdp3430.c                     |    6 +++---
 13 files changed, 28 insertions(+), 28 deletions(-)

I have not followed the thread too closely, but have you made the changes also to the sound/soc/codec/twl4030.c driver as well, since that also includes the linux/i2c/twl4030.h ?

If that has been taken care by other patch, than:

#6 lore raw
Quoted 4 lines

From: Peter Ujfalusi [mailto:[email protected]]
I have not followed the thread too closely, but have you made the changes also to the sound/soc/codec/twl4030.c driver as well, since that also includes the linux/i2c/twl4030.h ?

Yes, that has been taken care
I should have taken little more care, My Apologies.

Quoted 4 lines

If that has been taken care by other patch, than:

Thanks