diff options
Diffstat (limited to 'drivers/acpi/video.c')
-rw-r--r-- | drivers/acpi/video.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index baa441929720..66a610d0e2f5 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c | |||
@@ -481,6 +481,7 @@ acpi_video_device_lcd_set_level(struct acpi_video_device *device, int level) | |||
481 | int status = AE_OK; | 481 | int status = AE_OK; |
482 | union acpi_object arg0 = { ACPI_TYPE_INTEGER }; | 482 | union acpi_object arg0 = { ACPI_TYPE_INTEGER }; |
483 | struct acpi_object_list args = { 1, &arg0 }; | 483 | struct acpi_object_list args = { 1, &arg0 }; |
484 | int state; | ||
484 | 485 | ||
485 | 486 | ||
486 | arg0.integer.value = level; | 487 | arg0.integer.value = level; |
@@ -489,6 +490,10 @@ acpi_video_device_lcd_set_level(struct acpi_video_device *device, int level) | |||
489 | status = acpi_evaluate_object(device->dev->handle, "_BCM", | 490 | status = acpi_evaluate_object(device->dev->handle, "_BCM", |
490 | &args, NULL); | 491 | &args, NULL); |
491 | device->brightness->curr = level; | 492 | device->brightness->curr = level; |
493 | for (state = 2; state < device->brightness->count; state++) | ||
494 | if (level == device->brightness->levels[state]) | ||
495 | device->backlight->props.brightness = state - 2; | ||
496 | |||
492 | return status; | 497 | return status; |
493 | } | 498 | } |
494 | 499 | ||