[lucid-SRU][PATCH 1/2] UBUNTU: dell-laptop: Add another Dell laptop family to the DMI whitelist

Kamal Mostafa kamal at canonical.com
Tue Jan 25 00:05:18 UTC 2011


From 51c14ac91eedd75f9fbf8a2da4fb67964a52ae1e Mon Sep 17 00:00:00 2001
From: Erik Andren <erik.andren at gmail.com>
Date: Sun, 14 Feb 2010 11:53:23 -0500
Subject: [PATCH 1/2] dell-laptop: Add another Dell laptop to the DMI whitelist

The Latitude C640 has another variation of dell in its DMI vendor entry.
Add it to the whitelist in order to enjoy the sweet fruits of software
backlight toggling.

Signed-off-by: Erik Andren <erik.andren at gmail.com>
(cherry picked from commit cb6a7937f4328a267e0806680ade500ed2c3c01a)

Bring Dell DMI table up-to-date for...
BugLink: http://bugs.launchpad.net/bugs/693078
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
---
 drivers/platform/x86/dell-laptop.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c
index a224f49..6c2e1bc 100644
--- a/drivers/platform/x86/dell-laptop.c
+++ b/drivers/platform/x86/dell-laptop.c
@@ -84,6 +84,13 @@ static const struct dmi_system_id __initdata dell_device_table[] = {
 			DMI_MATCH(DMI_CHASSIS_TYPE, "8"),
 		},
 	},
+	{
+		.ident = "Dell Computer Corporation",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Computer Corporation"),
+			DMI_MATCH(DMI_CHASSIS_TYPE, "8"),
+		},
+	},
 	{ }
 };
 
@@ -603,3 +610,4 @@ MODULE_AUTHOR("Matthew Garrett <mjg at redhat.com>");
 MODULE_DESCRIPTION("Dell laptop driver");
 MODULE_LICENSE("GPL");
 MODULE_ALIAS("dmi:*svnDellInc.:*:ct8:*");
+MODULE_ALIAS("dmi:*svnDellComputerCorporation.:*:ct8:*");
-- 
1.7.1


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20110124/8ca6b089/attachment.sig>


More information about the kernel-team mailing list