mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Fix backlight limiting
@ 2009-11-21 18:49 Pavel Machek
  0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2009-11-21 18:49 UTC (permalink / raw)
  To: rpurdie, lenz, kernel list, Dirk, arminlitzel, Cyril Hrubis,
	thommycheck, linux-arm-kernel, dbaryshkov, omegamoon,
	eric.y.miao, utx

I have my trees quite modified in that area, testers welcome.

---

This should fix backlight limiting on 2.6.32-rc... 

Signed-off-by: Pavel Machek <pavel@ucw.cz>

Binary files arm.middle/mach-pxa/built-in.o and arm/mach-pxa/built-in.o differ
diff -ur arm.middle/mach-pxa/sharpsl_pm.c arm/mach-pxa/sharpsl_pm.c
--- a/arch/arm/mach-pxa/sharpsl_pm.c	2009-11-21 11:06:45.000000000 +0100
+++ b/arch/arm/mach-pxa/sharpsl_pm.c	2009-11-21 11:09:57.000000000 +0100
@@ -179,7 +179,6 @@
 	dev_dbg(sharpsl_pm.dev, "Battery: voltage: %d, status: %d, percentage: %d, time: %ld\n", voltage,
 			sharpsl_pm.battstat.mainbat_status, sharpsl_pm.battstat.mainbat_percent, jiffies);
 
-#ifdef CONFIG_BACKLIGHT_CORGI
 	/* If battery is low. limit backlight intensity to save power. */
 	if ((sharpsl_pm.battstat.ac_status != APM_AC_ONLINE)
 	    && ((sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_LOW)
@@ -192,7 +191,6 @@
 		sharpsl_pm.machinfo->backlight_limit(0);
 		sharpsl_pm.flags &= ~SHARPSL_BL_LIMIT;
 	}
-#endif
 
 	/* Suspend if critical battery level */
 	if ((sharpsl_pm.battstat.ac_status != APM_AC_ONLINE)


-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-21 18:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-21 18:49 Fix backlight limiting Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®