aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2013-01-16 08:53:49 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2013-02-13 18:22:49 -0500
commitc6dc96467ad94e3fe848d883d3a5a7e18a387abd (patch)
tree40a4af7ab9a6b93488c136a62b34fa844105f593
parent3d91f8282c66d9edafa3980385324ce6a48edcda (diff)
ARM: OMAP: zoom-display: Remove the use of TWL4030_MODULE_PWM1
Use the future proof TWL_MODULE_PWM module id instead to aim the twl-core cleanup planed for 3.9 kernel cycle. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r--arch/arm/mach-omap2/board-zoom-display.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/board-zoom-display.c b/arch/arm/mach-omap2/board-zoom-display.c
index 1c7c834a5b5f..8cef477d6b00 100644
--- a/arch/arm/mach-omap2/board-zoom-display.c
+++ b/arch/arm/mach-omap2/board-zoom-display.c
@@ -49,13 +49,13 @@ static void zoom_panel_disable_lcd(struct omap_dss_device *dssdev)
49{ 49{
50} 50}
51 51
52/* 52/* Register offsets in TWL4030_MODULE_INTBR */
53 * PWMA/B register offsets (TWL4030_MODULE_PWMA)
54 */
55#define TWL_INTBR_PMBR1 0xD 53#define TWL_INTBR_PMBR1 0xD
56#define TWL_INTBR_GPBR1 0xC 54#define TWL_INTBR_GPBR1 0xC
57#define TWL_LED_PWMON 0x0 55
58#define TWL_LED_PWMOFF 0x1 56/* Register offsets in TWL_MODULE_PWM */
57#define TWL_LED_PWMON 0x3
58#define TWL_LED_PWMOFF 0x4
59 59
60static int zoom_set_bl_intensity(struct omap_dss_device *dssdev, int level) 60static int zoom_set_bl_intensity(struct omap_dss_device *dssdev, int level)
61{ 61{
@@ -93,8 +93,8 @@ static int zoom_set_bl_intensity(struct omap_dss_device *dssdev, int level)
93 } 93 }
94 94
95 c = ((50 * (100 - level)) / 100) + 1; 95 c = ((50 * (100 - level)) / 100) + 1;
96 twl_i2c_write_u8(TWL4030_MODULE_PWM1, 0x7F, TWL_LED_PWMOFF); 96 twl_i2c_write_u8(TWL_MODULE_PWM, 0x7F, TWL_LED_PWMOFF);
97 twl_i2c_write_u8(TWL4030_MODULE_PWM1, c, TWL_LED_PWMON); 97 twl_i2c_write_u8(TWL_MODULE_PWM, c, TWL_LED_PWMON);
98#else 98#else
99 pr_warn("Backlight not enabled\n"); 99 pr_warn("Backlight not enabled\n");
100#endif 100#endif