Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358731
b: refs/heads/master
c: 0132267
h: refs/heads/master
i:
  358729: 69fb8d6
  358727: ff73763
v: v3
  • Loading branch information
Alexandre Courbot authored and Thierry Reding committed Jan 30, 2013
1 parent ab086a0 commit f323a24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 0d75c203effefa4f62ca4d30bf52bd9ec246717f
refs/heads/master: 0132267d659107616eb044777f1b0be55381129a
7 changes: 3 additions & 4 deletions trunk/drivers/video/backlight/pwm_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ static int pwm_backlight_update_status(struct backlight_device *bl)
int brightness = bl->props.brightness;
int max = bl->props.max_brightness;

if (bl->props.power != FB_BLANK_UNBLANK)
brightness = 0;

if (bl->props.fb_blank != FB_BLANK_UNBLANK)
if (bl->props.power != FB_BLANK_UNBLANK ||
bl->props.fb_blank != FB_BLANK_UNBLANK ||
bl->props.state & BL_CORE_FBBLANK)
brightness = 0;

if (pb->notify)
Expand Down

0 comments on commit f323a24

Please sign in to comment.