From: Hans de Goede Date: Thu, 28 May 2015 16:29:48 +0000 (+0200) Subject: ACPI / video: Add enable_native_backlight quirk for MacbookPro12,1 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7f5c1882add891f7420a327e908f206fafed3670;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git ACPI / video: Add enable_native_backlight quirk for MacbookPro12,1 It seems that the latest generation of MacbookPro needs to use the native backlight driver, just like most modern laptops do, but it does not automatically get enabled as the Apple BIOS does not advertise Windows 8 compatibility. So add a quirk for this. Reported-by: Christopher Beland Signed-off-by: Hans de Goede Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index cc79d3fedfb2..518f0e1d274d 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c @@ -583,6 +583,15 @@ static struct dmi_system_id video_dmi_table[] __initdata = { DMI_MATCH(DMI_PRODUCT_NAME, "102434U"), }, }, + { + /* https://bugzilla.redhat.com/show_bug.cgi?id=1217249 */ + .callback = video_enable_native_backlight, + .ident = "Apple MacBook Pro 12,1", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro12,1"), + }, + }, {} };