diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-11-07 13:22:16 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-11-07 13:22:16 -0500 |
commit | cf8a1af855cfce135c31b84d29a7cb870638cdaa (patch) | |
tree | 740f8cb0415983d114bd8280644046cd150d65a1 | |
parent | 0faf996f4dd02a361158a705afcc31284d732276 (diff) | |
parent | 906f187b93d4b15e54066802f2a3100ca4681296 (diff) |
Merge branch 'acpi-video'
* acpi-video:
Revert "ACPI / video: Ignore BIOS initial backlight value for HP 250 G1"
ACPI / video: Quirk initial backlight level 0
ACPI / video: Fix initial level validity test
ACPI / blacklist: fix name of ThinkPad Edge E530
-rw-r--r-- | drivers/acpi/blacklist.c | 2 | ||||
-rw-r--r-- | drivers/acpi/video.c | 12 |
2 files changed, 3 insertions, 11 deletions
diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c index b7fd1aeb6c42..fb848378d582 100644 --- a/drivers/acpi/blacklist.c +++ b/drivers/acpi/blacklist.c | |||
@@ -304,7 +304,7 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = { | |||
304 | }, | 304 | }, |
305 | { | 305 | { |
306 | .callback = dmi_disable_osi_win8, | 306 | .callback = dmi_disable_osi_win8, |
307 | .ident = "Lenovo ThinkPad Edge E530", | 307 | .ident = "ThinkPad Edge E530", |
308 | .matches = { | 308 | .matches = { |
309 | DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), | 309 | DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), |
310 | DMI_MATCH(DMI_PRODUCT_VERSION, "3259A2G"), | 310 | DMI_MATCH(DMI_PRODUCT_VERSION, "3259A2G"), |
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 38c3a28d6392..18dbdff4656e 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c | |||
@@ -504,14 +504,6 @@ static struct dmi_system_id video_dmi_table[] __initdata = { | |||
504 | DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion m4 Notebook PC"), | 504 | DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion m4 Notebook PC"), |
505 | }, | 505 | }, |
506 | }, | 506 | }, |
507 | { | ||
508 | .callback = video_ignore_initial_backlight, | ||
509 | .ident = "HP 250 G1", | ||
510 | .matches = { | ||
511 | DMI_MATCH(DMI_BOARD_VENDOR, "Hewlett-Packard"), | ||
512 | DMI_MATCH(DMI_PRODUCT_NAME, "HP 250 G1 Notebook PC"), | ||
513 | }, | ||
514 | }, | ||
515 | {} | 507 | {} |
516 | }; | 508 | }; |
517 | 509 | ||
@@ -856,9 +848,9 @@ acpi_video_init_brightness(struct acpi_video_device *device) | |||
856 | * or an index). Set the backlight to max_level in this case. | 848 | * or an index). Set the backlight to max_level in this case. |
857 | */ | 849 | */ |
858 | for (i = 2; i < br->count; i++) | 850 | for (i = 2; i < br->count; i++) |
859 | if (level_old == br->levels[i]) | 851 | if (level == br->levels[i]) |
860 | break; | 852 | break; |
861 | if (i == br->count) | 853 | if (i == br->count || !level) |
862 | level = max_level; | 854 | level = max_level; |
863 | } | 855 | } |
864 | 856 | ||