diff options
| author | Balaji T K <balajitk@ti.com> | 2009-12-15 09:39:02 -0500 |
|---|---|---|
| committer | Tony Lindgren <tony@atomide.com> | 2009-12-16 15:44:04 -0500 |
| commit | ebeb53e1e1f11a51d8a93843a437f516e3528bfa (patch) | |
| tree | 9dfb254a9173463289e249802fd6981716e4152e /drivers | |
| parent | c76f782cb3cfffc1fd4233e11f3116655fa0fcd2 (diff) | |
mfd: twl: fix twl4030 rename for remaining driver, board files
Recent drivers/mfd/twl4030* renames to twl broke compile for
various boards as the series was missing a patch to change
the board-*.c files.
This patch renames include twl4030.h to include twl.h
and also renames twl4030_i2c_ routines.
Signed-off-by: Balaji T K <balajitk@ti.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Reviewed-by: Felipe Balbi <felipe.balbi@nokia.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/video/omap/lcd_ldp.c | 4 | ||||
| -rw-r--r-- | drivers/video/omap/lcd_omap2evm.c | 10 | ||||
| -rw-r--r-- | drivers/video/omap/lcd_omap3beagle.c | 2 | ||||
| -rw-r--r-- | drivers/video/omap/lcd_omap3evm.c | 10 | ||||
| -rw-r--r-- | drivers/video/omap/lcd_overo.c | 2 |
5 files changed, 14 insertions, 14 deletions
diff --git a/drivers/video/omap/lcd_ldp.c b/drivers/video/omap/lcd_ldp.c index 5bb7f6f14601..0f5952cae85e 100644 --- a/drivers/video/omap/lcd_ldp.c +++ b/drivers/video/omap/lcd_ldp.c | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | #include <linux/module.h> | 24 | #include <linux/module.h> |
| 25 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
| 26 | #include <linux/delay.h> | 26 | #include <linux/delay.h> |
| 27 | #include <linux/i2c/twl4030.h> | 27 | #include <linux/i2c/twl.h> |
| 28 | 28 | ||
| 29 | #include <mach/gpio.h> | 29 | #include <mach/gpio.h> |
| 30 | #include <plat/mux.h> | 30 | #include <plat/mux.h> |
| @@ -59,7 +59,7 @@ | |||
| 59 | #define TWL4030_VPLL2_DEV_GRP 0x33 | 59 | #define TWL4030_VPLL2_DEV_GRP 0x33 |
| 60 | #define TWL4030_VPLL2_DEDICATED 0x36 | 60 | #define TWL4030_VPLL2_DEDICATED 0x36 |
| 61 | 61 | ||
| 62 | #define t2_out(c, r, v) twl4030_i2c_write_u8(c, r, v) | 62 | #define t2_out(c, r, v) twl_i2c_write_u8(c, r, v) |
| 63 | 63 | ||
| 64 | 64 | ||
| 65 | static int ldp_panel_init(struct lcd_panel *panel, | 65 | static int ldp_panel_init(struct lcd_panel *panel, |
diff --git a/drivers/video/omap/lcd_omap2evm.c b/drivers/video/omap/lcd_omap2evm.c index 006c2fe7360e..7e7a65c08452 100644 --- a/drivers/video/omap/lcd_omap2evm.c +++ b/drivers/video/omap/lcd_omap2evm.c | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | #include <linux/module.h> | 24 | #include <linux/module.h> |
| 25 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
| 26 | #include <linux/gpio.h> | 26 | #include <linux/gpio.h> |
| 27 | #include <linux/i2c/twl4030.h> | 27 | #include <linux/i2c/twl.h> |
| 28 | 28 | ||
| 29 | #include <plat/mux.h> | 29 | #include <plat/mux.h> |
| 30 | #include <asm/mach-types.h> | 30 | #include <asm/mach-types.h> |
| @@ -61,9 +61,9 @@ static int omap2evm_panel_init(struct lcd_panel *panel, | |||
| 61 | gpio_direction_output(LCD_PANEL_LR, 1); | 61 | gpio_direction_output(LCD_PANEL_LR, 1); |
| 62 | gpio_direction_output(LCD_PANEL_UD, 1); | 62 | gpio_direction_output(LCD_PANEL_UD, 1); |
| 63 | 63 | ||
| 64 | twl4030_i2c_write_u8(TWL4030_MODULE_LED, 0x11, TWL_LED_LEDEN); | 64 | twl_i2c_write_u8(TWL4030_MODULE_LED, 0x11, TWL_LED_LEDEN); |
| 65 | twl4030_i2c_write_u8(TWL4030_MODULE_PWMA, 0x01, TWL_PWMA_PWMAON); | 65 | twl_i2c_write_u8(TWL4030_MODULE_PWMA, 0x01, TWL_PWMA_PWMAON); |
| 66 | twl4030_i2c_write_u8(TWL4030_MODULE_PWMA, 0x02, TWL_PWMA_PWMAOFF); | 66 | twl_i2c_write_u8(TWL4030_MODULE_PWMA, 0x02, TWL_PWMA_PWMAOFF); |
| 67 | bklight_level = 100; | 67 | bklight_level = 100; |
| 68 | 68 | ||
| 69 | return 0; | 69 | return 0; |
| @@ -101,7 +101,7 @@ static int omap2evm_bklight_setlevel(struct lcd_panel *panel, | |||
| 101 | u8 c; | 101 | u8 c; |
| 102 | if ((level >= 0) && (level <= 100)) { | 102 | if ((level >= 0) && (level <= 100)) { |
| 103 | c = (125 * (100 - level)) / 100 + 2; | 103 | c = (125 * (100 - level)) / 100 + 2; |
| 104 | twl4030_i2c_write_u8(TWL4030_MODULE_PWMA, c, TWL_PWMA_PWMAOFF); | 104 | twl_i2c_write_u8(TWL4030_MODULE_PWMA, c, TWL_PWMA_PWMAOFF); |
| 105 | bklight_level = level; | 105 | bklight_level = level; |
| 106 | } | 106 | } |
| 107 | return 0; | 107 | return 0; |
diff --git a/drivers/video/omap/lcd_omap3beagle.c b/drivers/video/omap/lcd_omap3beagle.c index fc503d8f3c24..ca75cc2a87a5 100644 --- a/drivers/video/omap/lcd_omap3beagle.c +++ b/drivers/video/omap/lcd_omap3beagle.c | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | #include <linux/module.h> | 23 | #include <linux/module.h> |
| 24 | #include <linux/platform_device.h> | 24 | #include <linux/platform_device.h> |
| 25 | #include <linux/gpio.h> | 25 | #include <linux/gpio.h> |
| 26 | #include <linux/i2c/twl4030.h> | 26 | #include <linux/i2c/twl.h> |
| 27 | 27 | ||
| 28 | #include <plat/mux.h> | 28 | #include <plat/mux.h> |
| 29 | #include <plat/mux.h> | 29 | #include <plat/mux.h> |
diff --git a/drivers/video/omap/lcd_omap3evm.c b/drivers/video/omap/lcd_omap3evm.c index ae2edc4081a8..06840da0b094 100644 --- a/drivers/video/omap/lcd_omap3evm.c +++ b/drivers/video/omap/lcd_omap3evm.c | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | #include <linux/module.h> | 23 | #include <linux/module.h> |
| 24 | #include <linux/platform_device.h> | 24 | #include <linux/platform_device.h> |
| 25 | #include <linux/gpio.h> | 25 | #include <linux/gpio.h> |
| 26 | #include <linux/i2c/twl4030.h> | 26 | #include <linux/i2c/twl.h> |
| 27 | 27 | ||
| 28 | #include <plat/mux.h> | 28 | #include <plat/mux.h> |
| 29 | #include <asm/mach-types.h> | 29 | #include <asm/mach-types.h> |
| @@ -63,9 +63,9 @@ static int omap3evm_panel_init(struct lcd_panel *panel, | |||
| 63 | gpio_direction_output(LCD_PANEL_LR, 1); | 63 | gpio_direction_output(LCD_PANEL_LR, 1); |
| 64 | gpio_direction_output(LCD_PANEL_UD, 1); | 64 | gpio_direction_output(LCD_PANEL_UD, 1); |
| 65 | 65 | ||
| 66 | twl4030_i2c_write_u8(TWL4030_MODULE_LED, 0x11, TWL_LED_LEDEN); | 66 | twl_i2c_write_u8(TWL4030_MODULE_LED, 0x11, TWL_LED_LEDEN); |
| 67 | twl4030_i2c_write_u8(TWL4030_MODULE_PWMA, 0x01, TWL_PWMA_PWMAON); | 67 | twl_i2c_write_u8(TWL4030_MODULE_PWMA, 0x01, TWL_PWMA_PWMAON); |
| 68 | twl4030_i2c_write_u8(TWL4030_MODULE_PWMA, 0x02, TWL_PWMA_PWMAOFF); | 68 | twl_i2c_write_u8(TWL4030_MODULE_PWMA, 0x02, TWL_PWMA_PWMAOFF); |
| 69 | bklight_level = 100; | 69 | bklight_level = 100; |
| 70 | 70 | ||
| 71 | return 0; | 71 | return 0; |
| @@ -102,7 +102,7 @@ static int omap3evm_bklight_setlevel(struct lcd_panel *panel, | |||
| 102 | u8 c; | 102 | u8 c; |
| 103 | if ((level >= 0) && (level <= 100)) { | 103 | if ((level >= 0) && (level <= 100)) { |
| 104 | c = (125 * (100 - level)) / 100 + 2; | 104 | c = (125 * (100 - level)) / 100 + 2; |
| 105 | twl4030_i2c_write_u8(TWL4030_MODULE_PWMA, c, TWL_PWMA_PWMAOFF); | 105 | twl_i2c_write_u8(TWL4030_MODULE_PWMA, c, TWL_PWMA_PWMAOFF); |
| 106 | bklight_level = level; | 106 | bklight_level = level; |
| 107 | } | 107 | } |
| 108 | return 0; | 108 | return 0; |
diff --git a/drivers/video/omap/lcd_overo.c b/drivers/video/omap/lcd_overo.c index 56ee192e9ee2..564933ffac6e 100644 --- a/drivers/video/omap/lcd_overo.c +++ b/drivers/video/omap/lcd_overo.c | |||
| @@ -21,7 +21,7 @@ | |||
| 21 | 21 | ||
| 22 | #include <linux/module.h> | 22 | #include <linux/module.h> |
| 23 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
| 24 | #include <linux/i2c/twl4030.h> | 24 | #include <linux/i2c/twl.h> |
| 25 | 25 | ||
| 26 | #include <mach/gpio.h> | 26 | #include <mach/gpio.h> |
| 27 | #include <plat/mux.h> | 27 | #include <plat/mux.h> |
