]> git.baikalelectronics.ru Git - kernel.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)
commit112198ebd0ff712c040ca9449e92af8792983625
tree4e537bbfc3bcba2e3a0d93457009052190136078
parentbe8354af0d15704e1f419282f3e70e0174c24fe1
[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