diff options
author | Len Brown <len.brown@intel.com> | 2009-01-09 09:37:48 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-01-09 09:37:48 +0100 |
commit | d0302bc62af7983040ea1cd1b5dd2b36e1a6a509 (patch) | |
tree | ef45618ae057e21fff7c82190939fe5f4466cf06 /drivers/acpi/video.c | |
parent | Merge branch 'fujitsu-laptop' into release (diff) | |
parent | ACPI : Use RSDT instead of XSDT by adding boot option of "acpi=rsdt" (diff) | |
download | linux-d0302bc62af7983040ea1cd1b5dd2b36e1a6a509.tar.xz linux-d0302bc62af7983040ea1cd1b5dd2b36e1a6a509.zip |
Merge branch 'misc' into release
Conflicts:
include/acpi/acpixf.h
Signed-off-by: Len Brown <len.brown@intel.com>
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 38bf8b43fd19..f261737636da 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c @@ -482,6 +482,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; @@ -490,6 +491,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; } |