da8e53a
From fdf69c4a4cfbc24694f58014e536ea5110fff9c1 Mon Sep 17 00:00:00 2001
da8e53a
From: Hans de Goede <hdegoede@redhat.com>
da8e53a
Date: Mon, 5 May 2014 10:15:53 +0200
da8e53a
Subject: [PATCH] acpi-video: Add use_native_backlight quirks for ThinkPad
da8e53a
 T430, T530 and Acer Aspire 5742G
da8e53a
da8e53a
ThinkPad T430: extend the T430s entry to also cover the T430 (note we also
da8e53a
have another entry for T430's with a different DMI_PRODUCT_VERSION).
da8e53a
da8e53a
Reported-and-tested-by: edm <fuffi.il.fuffo@gmail.com>
da8e53a
Buglink: https://bugzilla.kernel.org/show_bug.cgi?id=51231
da8e53a
da8e53a
Thinkpad T530
da8e53a
Reported-and-tested-by: Balint Szigeti <balint.szgt@gmail.com>
da8e53a
Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1089545
da8e53a
da8e53a
Acer Aspire 5742G
da8e53a
Reported-and-tested-by: AnAkkk <anakin.cs@gmail.com>
da8e53a
Buglink: https://bugzilla.kernel.org/show_bug.cgi?id=35622
da8e53a
da8e53a
Cc: stable@vger.kernel.org
da8e53a
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
da8e53a
---
da8e53a
 drivers/acpi/video.c | 20 ++++++++++++++++++--
da8e53a
 1 file changed, 18 insertions(+), 2 deletions(-)
da8e53a
da8e53a
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
da8e53a
index 48146fc..4d14b27 100644
da8e53a
--- a/drivers/acpi/video.c
da8e53a
+++ b/drivers/acpi/video.c
da8e53a
@@ -457,10 +457,10 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
da8e53a
 	},
da8e53a
 	{
da8e53a
 	 .callback = video_set_use_native_backlight,
da8e53a
-	 .ident = "ThinkPad T430s",
da8e53a
+	 .ident = "ThinkPad T430 and T430s",
da8e53a
 	 .matches = {
da8e53a
 		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
da8e53a
-		DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T430s"),
da8e53a
+		DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T430"),
da8e53a
 		},
da8e53a
 	},
da8e53a
 	{
da8e53a
@@ -472,6 +472,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
da8e53a
 		},
da8e53a
 	},
da8e53a
 	{
da8e53a
+	 .callback = video_set_use_native_backlight,
da8e53a
+	 .ident = "ThinkPad T530",
da8e53a
+	 .matches = {
da8e53a
+		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
da8e53a
+		DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T530"),
da8e53a
+		},
da8e53a
+	},
da8e53a
+	{
da8e53a
 	.callback = video_set_use_native_backlight,
da8e53a
 	.ident = "ThinkPad X1 Carbon",
da8e53a
 	.matches = {
da8e53a
@@ -521,6 +529,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
da8e53a
 	},
da8e53a
 	{
da8e53a
 	 .callback = video_set_use_native_backlight,
da8e53a
+	 .ident = "Acer Aspire 5742G",
da8e53a
+	 .matches = {
da8e53a
+		DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
da8e53a
+		DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5742G"),
da8e53a
+		},
da8e53a
+	},
da8e53a
+	{
da8e53a
+	 .callback = video_set_use_native_backlight,
da8e53a
 	 .ident = "Acer Aspire V5-171",
da8e53a
 	 .matches = {
da8e53a
 		DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
da8e53a
-- 
da8e53a
1.9.0
da8e53a