Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272006
b: refs/heads/master
c: d4afc77
h: refs/heads/master
v: v3
  • Loading branch information
Rene Bollford authored and Matthew Garrett committed Oct 24, 2011
1 parent eeae38b commit c3b5def
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1709adab0773616da7a8190f2762e599afb0a295
refs/heads/master: d4afc7754a60b885b63ef23fd194984e2d53a4e6
2 changes: 2 additions & 0 deletions trunk/drivers/platform/x86/ideapad-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,8 @@ static void ideapad_backlight_notify_power(struct ideapad_private *priv)
unsigned long power;
struct backlight_device *blightdev = priv->blightdev;

if (!blightdev)
return;
if (read_ec_data(ideapad_handle, 0x18, &power))
return;
blightdev->props.power = power ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN;
Expand Down

0 comments on commit c3b5def

Please sign in to comment.