[ar71xx] preliminary support for the Ubiquiti RouterStation Pro
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1158-minor-problem-with-LCD.patch
1 From 123f9e43f721a11e1b70c49b05cacb8f6edd7eaf Mon Sep 17 00:00:00 2001
2 From: Sean McNeil <sean@mcneil.com>
3 Date: Tue, 13 May 2008 18:54:41 +0100
4 Subject: [PATCH] minor problem with LCD
5
6 Looking at wrong register to see if the LCD is turned off?
7 ---
8 drivers/i2c/chips/pcf50633.c | 4 ++--
9 1 files changed, 2 insertions(+), 2 deletions(-)
10
11 diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
12 index db0589e..e3f0271 100644
13 --- a/drivers/i2c/chips/pcf50633.c
14 +++ b/drivers/i2c/chips/pcf50633.c
15 @@ -1459,7 +1459,7 @@ static int pcf50633bl_get_intensity(struct backlight_device *bd)
16 struct pcf50633_data *pcf = bl_get_data(bd);
17 int intensity = reg_read(pcf, PCF50633_REG_LEDOUT);
18
19 - if (!(reg_read(pcf, PCF50633_REG_LEDOUT) & 1))
20 + if (!(reg_read(pcf, PCF50633_REG_LEDENA) & 1))
21 intensity = 0;
22
23 return intensity & 0x3f;
24 @@ -1472,7 +1472,7 @@ static int pcf50633bl_set_intensity(struct backlight_device *bd)
25 int old_intensity = reg_read(pcf, PCF50633_REG_LEDOUT);
26 int ret;
27
28 - if (!(reg_read(pcf, PCF50633_REG_LEDOUT) & 1))
29 + if (!(reg_read(pcf, PCF50633_REG_LEDENA) & 1))
30 old_intensity = 0;
31
32 if ((bd->props.power != FB_BLANK_UNBLANK) ||
33 --
34 1.5.6.5
35
This page took 0.04655 seconds and 5 git commands to generate.