[pkg-fso-commits] [SCM] linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko branch, andy-tracking, updated. upstream/20090303.gitb9de904e-140-g23b564c
Nelson Castillo
arhuaco at freaks-unidos.net
Mon Jun 8 17:30:04 UTC 2009
The following commit has been merged in the andy-tracking branch:
commit 06fbe40974754ff188612acf0340c1b29400e439
Author: Paul Fertser <fercerpav at gmail.com>
Date: Thu Apr 16 16:04:14 2009 +0400
gta02: fix re-enabling backlight with <12 values
If brightness value was set to anything less than 12, the backlight wasn't
re-enabled after unblanking the display. Closes ticket #2262.
Signed-off-by: Paul Fertser <fercerpav at gmail.com>
diff --git a/arch/arm/mach-s3c2442/mach-gta02.c b/arch/arm/mach-s3c2442/mach-gta02.c
index 079a2cc..d16e9d6 100644
--- a/arch/arm/mach-s3c2442/mach-gta02.c
+++ b/arch/arm/mach-s3c2442/mach-gta02.c
@@ -1027,16 +1027,17 @@ static void gta02_bl_set_intensity(int intensity)
return;
}
- old_intensity = pcf50633_reg_read(pcf, PCF50633_REG_LEDOUT);
+ if (!(pcf50633_reg_read(pcf, PCF50633_REG_LEDENA) & 3))
+ old_intensity = 0;
+ else
+ old_intensity = pcf50633_reg_read(pcf, PCF50633_REG_LEDOUT);
+
if (intensity == old_intensity)
return;
/* We can't do this anywhere else */
pcf50633_reg_write(pcf, PCF50633_REG_LEDDIM, 5);
- if (!(pcf50633_reg_read(pcf, PCF50633_REG_LEDENA) & 3))
- old_intensity = 0;
-
/*
* The PCF50633 cannot handle LEDOUT = 0 (datasheet p60)
* if seen, you have to re-enable the LED unit
--
linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko
More information about the pkg-fso-commits
mailing list