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

login
register
mail settings
Submitter Kamal Mostafa
Date Jan. 25, 2011, 12:05 a.m.
Message ID <1295913954.16789.89.camel@fourier>
Download mbox | patch
Permalink /patch/80295/
State Accepted
Delegated to: Tim Gardner
Headers show

Comments

Kamal Mostafa - Jan. 25, 2011, 12:05 a.m.
From e3fa82ded9f5797a8389cf175271e0c018847f81 Mon Sep 17 00:00:00 2001
From: Rezwanul Kabir <Rezwanul_Kabir@dell.com>
Date: Wed, 23 Jun 2010 12:02:43 -0500
Subject: [PATCH 2/2] dell-laptop: Add another Dell laptop family to the DMI whitelist

This is to support Precision M4500 and others.

Signed-off-by: Rezwanul Kabir <Rezwanul_Kabir@dell.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
(cherry picked from commit 410d44c74cf9942e3055d5b7d73953fac8efbacb)

BugLink: http://bugs.launchpad.net/bugs/693078
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
---
 drivers/platform/x86/dell-laptop.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
Stefan Bader - Jan. 25, 2011, 10:58 a.m.
On 01/25/2011 01:05 AM, Kamal Mostafa wrote:
> From e3fa82ded9f5797a8389cf175271e0c018847f81 Mon Sep 17 00:00:00 2001
> From: Rezwanul Kabir <Rezwanul_Kabir@dell.com>
> Date: Wed, 23 Jun 2010 12:02:43 -0500
> Subject: [PATCH 2/2] dell-laptop: Add another Dell laptop family to the DMI whitelist
> 
> This is to support Precision M4500 and others.
> 
> Signed-off-by: Rezwanul Kabir <Rezwanul_Kabir@dell.com>
> Signed-off-by: Matthew Garrett <mjg@redhat.com>
> (cherry picked from commit 410d44c74cf9942e3055d5b7d73953fac8efbacb)
> 
> BugLink: http://bugs.launchpad.net/bugs/693078
> Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
> ---
>  drivers/platform/x86/dell-laptop.c |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c
> index 6c2e1bc..723e6cf 100644
> --- a/drivers/platform/x86/dell-laptop.c
> +++ b/drivers/platform/x86/dell-laptop.c
> @@ -85,6 +85,12 @@ static const struct dmi_system_id __initdata dell_device_table[] = {
>  		},
>  	},
>  	{
> +		.matches = {
> +			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
> +			DMI_MATCH(DMI_CHASSIS_TYPE, "9"), /*Laptop*/
> +		},
> +	},
> +	{
>  		.ident = "Dell Computer Corporation",
>  		.matches = {
>  			DMI_MATCH(DMI_SYS_VENDOR, "Dell Computer Corporation"),
> @@ -610,4 +616,5 @@ MODULE_AUTHOR("Matthew Garrett <mjg@redhat.com>");
>  MODULE_DESCRIPTION("Dell laptop driver");
>  MODULE_LICENSE("GPL");
>  MODULE_ALIAS("dmi:*svnDellInc.:*:ct8:*");
> +MODULE_ALIAS("dmi:*svnDellInc.:*:ct9:*");
>  MODULE_ALIAS("dmi:*svnDellComputerCorporation.:*:ct8:*");
>

Patch

diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c
index 6c2e1bc..723e6cf 100644
--- a/drivers/platform/x86/dell-laptop.c
+++ b/drivers/platform/x86/dell-laptop.c
@@ -85,6 +85,12 @@  static const struct dmi_system_id __initdata dell_device_table[] = {
 		},
 	},
 	{
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+			DMI_MATCH(DMI_CHASSIS_TYPE, "9"), /*Laptop*/
+		},
+	},
+	{
 		.ident = "Dell Computer Corporation",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "Dell Computer Corporation"),
@@ -610,4 +616,5 @@  MODULE_AUTHOR("Matthew Garrett <mjg@redhat.com>");
 MODULE_DESCRIPTION("Dell laptop driver");
 MODULE_LICENSE("GPL");
 MODULE_ALIAS("dmi:*svnDellInc.:*:ct8:*");
+MODULE_ALIAS("dmi:*svnDellInc.:*:ct9:*");
 MODULE_ALIAS("dmi:*svnDellComputerCorporation.:*:ct8:*");