From: Charilie Paul <[email protected]>
Subject: [PATCH] fix backlight brightness controls on customer reference
hardware v2
Symptom is that using the backlight control controls the wrong LED.
Fix corrects the base register used to offset off of per LED.
Signed-off-by: Ken Lierman<[email protected]>
---
drivers/leds/leds-lp5523.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: linux-2.6.35/drivers/leds/leds-lp5523.c
===================================================================
--- linux-2.6.35.orig/drivers/leds/leds-lp5523.c
+++ linux-2.6.35/drivers/leds/leds-lp5523.c
@@ -102,6 +102,7 @@
#define LP5523_EXT_CLK_USED 0x08
+#define LP5523_PWM_CONTROL_OFFSET (LP5523_REG_LED_PWM_BASE-1)
#define LP5523_CURRENT_CONTROL_OFFSET (LP5523_REG_LED_CURRENT_BASE-1)
#define LED_ACTIVE(mux, led) (!!(mux & (0x0001 << led)))
@@ -498,7 +499,7 @@ static void lp5523_set_brightness(struct
mutex_lock(&chip->lock);
- lp5523_write(client, LP5523_REG_LED_PWM_BASE + led->chan_nr,
+ lp5523_write(client, LP5523_PWM_CONTROL_OFFSET + led->chan_nr,
(u8)brightness);
mutex_unlock(&chip->lock);
_______________________________________________
Meego-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel