mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-16 13:34:30 +00:00
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>
This commit is contained in:
parent
3d91f8282c
commit
c6dc96467a
@ -49,13 +49,13 @@ static void zoom_panel_disable_lcd(struct omap_dss_device *dssdev)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/* Register offsets in TWL4030_MODULE_INTBR */
|
||||||
* PWMA/B register offsets (TWL4030_MODULE_PWMA)
|
|
||||||
*/
|
|
||||||
#define TWL_INTBR_PMBR1 0xD
|
#define TWL_INTBR_PMBR1 0xD
|
||||||
#define TWL_INTBR_GPBR1 0xC
|
#define TWL_INTBR_GPBR1 0xC
|
||||||
#define TWL_LED_PWMON 0x0
|
|
||||||
#define TWL_LED_PWMOFF 0x1
|
/* Register offsets in TWL_MODULE_PWM */
|
||||||
|
#define TWL_LED_PWMON 0x3
|
||||||
|
#define TWL_LED_PWMOFF 0x4
|
||||||
|
|
||||||
static int zoom_set_bl_intensity(struct omap_dss_device *dssdev, int level)
|
static int zoom_set_bl_intensity(struct omap_dss_device *dssdev, int level)
|
||||||
{
|
{
|
||||||
@ -93,8 +93,8 @@ static int zoom_set_bl_intensity(struct omap_dss_device *dssdev, int level)
|
|||||||
}
|
}
|
||||||
|
|
||||||
c = ((50 * (100 - level)) / 100) + 1;
|
c = ((50 * (100 - level)) / 100) + 1;
|
||||||
twl_i2c_write_u8(TWL4030_MODULE_PWM1, 0x7F, TWL_LED_PWMOFF);
|
twl_i2c_write_u8(TWL_MODULE_PWM, 0x7F, TWL_LED_PWMOFF);
|
||||||
twl_i2c_write_u8(TWL4030_MODULE_PWM1, c, TWL_LED_PWMON);
|
twl_i2c_write_u8(TWL_MODULE_PWM, c, TWL_LED_PWMON);
|
||||||
#else
|
#else
|
||||||
pr_warn("Backlight not enabled\n");
|
pr_warn("Backlight not enabled\n");
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user