From: Martin Kepplinger <martink@posteo.de>
Date: Mon, 23 Jun 2014 20:30:46 +0000 (+0200)
Subject: ACPI / video: Add Acer TravelMate B113 to native backlight blacklist
X-Git-Tag: firefly_0821_release~176^2~3642^2~1^2
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ab7027de5c01e4fba0e5ef946f0db27b2e3d799d;p=firefly-linux-kernel-4.4.55.git

ACPI / video: Add Acer TravelMate B113 to native backlight blacklist

Fix backlight control for Acer TravelMate B113 Laptop by adding
it to the video_dmi_table.

A workaround before that was to use acpi_osi=Linux or
acpi_backlight=vendor on boot but even then, only the function-
keys worked.

With this change there is no need for boot parameters and DE's
controls work as well.

Signed-off-by: Martin Kepplinger <martink@posteo.de>
[rjw: Subject]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---

diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index 5bb1278e9324..071c1dfb93f3 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -563,6 +563,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
 		DMI_MATCH(DMI_PRODUCT_NAME, "Aspire V5-471G"),
 		},
 	},
+	{
+	 .callback = video_set_use_native_backlight,
+	 .ident = "Acer TravelMate B113",
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
+		DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate B113"),
+		},
+	},
 	{
 	.callback = video_set_use_native_backlight,
 	.ident = "HP ProBook 4340s",