[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>
This commit is contained in:
committed by
Paul Mackerras
parent
7ac5dde99e
commit
0094f2cdcf
@@ -159,6 +159,8 @@ extern void pmu_unlock(void);
|
||||
extern int pmu_present(void);
|
||||
extern int pmu_get_model(void);
|
||||
|
||||
extern void pmu_backlight_set_sleep(int sleep);
|
||||
|
||||
#define PMU_MAX_BATTERIES 2
|
||||
|
||||
/* values for pmu_power_flags */
|
||||
|
||||
Reference in New Issue
Block a user