]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Fix for via-pmu based backlight control
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Dec 2007 04:00:21 +0000 (15:00 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 21 Dec 2007 11:14:07 +0000 (22:14 +1100)
commit0094f2cdcfb6f2132b2ea3b4e85e0f6899c8595b
tree4e537bbfc3bcba2e3a0d93457009052190136078
parent7ac5dde99eb9fefdb526973c600075b7c5703a86
[POWERPC] Fix for via-pmu based backlight control

This fixes a few issues with via-pmu based backlight control.

First, it fixes a sign problem with the setup of the backlight
curve since the `range' value there -can- (and will) go negative.

Then, it reworks the interaction between this and the via-pmu sleep
code to properly restore backlight on wakeup from sleep.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/macintosh/via-pmu-backlight.c
drivers/macintosh/via-pmu.c
include/linux/pmu.h