Commit b444df2f authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Linus Torvalds

drivers/video/backlight/pandora_bl.c: change TWL4030_MODULE_PWM0 to TWL_MODULE_PWM

TWL_MODULE_PWM is defined as:

  #define TWL_MODULE_PWM		TWL4030_MODULE_PWM0

Use the common module ID define here which will facilitate the upcoming
twl-core cleanup.
Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: default avatarJingoo Han <jg1.han@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 762a936f
...@@ -71,8 +71,7 @@ static int pandora_backlight_update_status(struct backlight_device *bl) ...@@ -71,8 +71,7 @@ static int pandora_backlight_update_status(struct backlight_device *bl)
* set PWM duty cycle to max. TPS61161 seems to use this * set PWM duty cycle to max. TPS61161 seems to use this
* to calibrate it's PWM sensitivity when it starts. * to calibrate it's PWM sensitivity when it starts.
*/ */
twl_i2c_write_u8(TWL4030_MODULE_PWM0, MAX_VALUE, twl_i2c_write_u8(TWL_MODULE_PWM, MAX_VALUE, TWL_PWM0_OFF);
TWL_PWM0_OFF);
/* first enable clock, then PWM0 out */ /* first enable clock, then PWM0 out */
twl_i2c_read_u8(TWL4030_MODULE_INTBR, &r, TWL_INTBR_GPBR1); twl_i2c_read_u8(TWL4030_MODULE_INTBR, &r, TWL_INTBR_GPBR1);
...@@ -90,8 +89,7 @@ static int pandora_backlight_update_status(struct backlight_device *bl) ...@@ -90,8 +89,7 @@ static int pandora_backlight_update_status(struct backlight_device *bl)
usleep_range(2000, 10000); usleep_range(2000, 10000);
} }
twl_i2c_write_u8(TWL4030_MODULE_PWM0, MIN_VALUE + brightness, twl_i2c_write_u8(TWL_MODULE_PWM, MIN_VALUE + brightness, TWL_PWM0_OFF);
TWL_PWM0_OFF);
done: done:
if (brightness != 0) if (brightness != 0)
...@@ -132,7 +130,7 @@ static int pandora_backlight_probe(struct platform_device *pdev) ...@@ -132,7 +130,7 @@ static int pandora_backlight_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, bl); platform_set_drvdata(pdev, bl);
/* 64 cycle period, ON position 0 */ /* 64 cycle period, ON position 0 */
twl_i2c_write_u8(TWL4030_MODULE_PWM0, 0x80, TWL_PWM0_ON); twl_i2c_write_u8(TWL_MODULE_PWM, 0x80, TWL_PWM0_ON);
bl->props.state |= PANDORABL_WAS_OFF; bl->props.state |= PANDORABL_WAS_OFF;
bl->props.brightness = MAX_USER_VALUE; bl->props.brightness = MAX_USER_VALUE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment