Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185042
b: refs/heads/master
c: e5b50f6
h: refs/heads/master
v: v3
  • Loading branch information
Corentin Chary committed Feb 28, 2010
1 parent 7e52dc8 commit 308f4b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 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: c45eecf8719e0b2090c8a71bdc31e39d00746c84
refs/heads/master: e5b50f6a2b00de266f03c2c7219b798648124ea5
10 changes: 2 additions & 8 deletions trunk/drivers/platform/x86/asus-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,17 +571,11 @@ static int read_brightness(struct backlight_device *bd)

static int set_brightness(struct backlight_device *bd, int value)
{
int ret = 0;

value = (0 < value) ? ((15 < value) ? 15 : value) : 0;
/* 0 <= value <= 15 */

if (write_acpi_int(brightness_set_handle, NULL, value, NULL)) {
pr_warning("Error changing brightness\n");
ret = -EIO;
return -EIO;
}

return ret;
return 0;
}

static int update_bl_status(struct backlight_device *bd)
Expand Down

0 comments on commit 308f4b3

Please sign in to comment.