Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128084
b: refs/heads/master
c: 9e6dada
h: refs/heads/master
v: v3
  • Loading branch information
Zhang Rui authored and Len Brown committed Dec 31, 2008
1 parent 9345872 commit a045790
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 11e93130c7ce5228d484fd5e86f3984835d4256b
refs/heads/master: 9e6dada9d255497127251c03aaa59296d186f959
5 changes: 5 additions & 0 deletions trunk/drivers/acpi/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ acpi_video_device_lcd_set_level(struct acpi_video_device *device, int level)
int status = AE_OK;
union acpi_object arg0 = { ACPI_TYPE_INTEGER };
struct acpi_object_list args = { 1, &arg0 };
int state;


arg0.integer.value = level;
Expand All @@ -489,6 +490,10 @@ acpi_video_device_lcd_set_level(struct acpi_video_device *device, int level)
status = acpi_evaluate_object(device->dev->handle, "_BCM",
&args, NULL);
device->brightness->curr = level;
for (state = 2; state < device->brightness->count; state++)
if (level == device->brightness->levels[state])
device->backlight->props.brightness = state - 2;

return status;
}

Expand Down

0 comments on commit a045790

Please sign in to comment.