aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2009-04-16 16:04:14 +0400
committerNelson Castillo <arhuaco@freaks-unidos.net>2009-04-16 08:39:23 -0500
commit06fbe40974754ff188612acf0340c1b29400e439 (patch)
tree2235a6fabc9355eb71c8567b70acb3c23a492fa5 /arch
parent9bb6dde7dcd22b1a12306669673a55e824a856da (diff)
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@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-s3c2442/mach-gta02.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-s3c2442/mach-gta02.c b/arch/arm/mach-s3c2442/mach-gta02.c
index 079a2cc13b7..d16e9d638c1 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