Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87265
b: refs/heads/master
c: fa19d63
h: refs/heads/master
i:
  87263: 5be3c26
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Mar 12, 2008
1 parent 99489d1 commit 1195623
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f172890a8f8744c4005c267ae9e228411ab173f
refs/heads/master: fa19d63488bd108a308f575064779bb69123efbc
5 changes: 3 additions & 2 deletions trunk/drivers/macintosh/via-pmu-backlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

static struct backlight_ops pmu_backlight_data;
static DEFINE_SPINLOCK(pmu_backlight_lock);
static int sleeping;
static int sleeping, uses_pmu_bl;
static u8 bl_curve[FB_BACKLIGHT_LEVELS];

static void pmu_backlight_init_curve(u8 off, u8 min, u8 max)
Expand Down Expand Up @@ -128,7 +128,7 @@ void pmu_backlight_set_sleep(int sleep)

spin_lock_irqsave(&pmu_backlight_lock, flags);
sleeping = sleep;
if (pmac_backlight) {
if (pmac_backlight && uses_pmu_bl) {
if (sleep) {
struct adb_request req;

Expand Down Expand Up @@ -166,6 +166,7 @@ void __init pmu_backlight_init()
printk(KERN_ERR "PMU Backlight registration failed\n");
return;
}
uses_pmu_bl = 1;
bd->props.max_brightness = FB_BACKLIGHT_LEVELS - 1;
pmu_backlight_init_curve(0x7F, 0x46, 0x0E);

Expand Down

0 comments on commit 1195623

Please sign in to comment.