public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Samsung N220 backlight support
@ 2010-01-30 16:06 Christian Hesse
  2010-01-30 16:28 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Christian Hesse @ 2010-01-30 16:06 UTC (permalink / raw)
  To: linux-kernel; +Cc: Greg KH

[-- Attachment #1: Type: text/plain, Size: 180 bytes --]

Hello Greg,

this adds support for Samsung N220 to your samsung-backlight. Tested on my 
device, works for me.

Regards,
Chris

Signed-off-by: Christian Hesse <mail@earthworm.de>


[-- Attachment #2: samsung-backlight-n220.diff --]
[-- Type: text/x-patch, Size: 1426 bytes --]

--- samsung-backlight.c~	2010-01-28 19:10:40.000000000 +0100
+++ samsung-backlight.c	2010-01-28 19:18:50.000000000 +0100
@@ -105,6 +105,15 @@ static struct dmi_system_id __initdata s
 		.callback = dmi_check_cb,
 	},
 	{
+		.ident = "N220",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "N220"),
+			DMI_MATCH(DMI_BOARD_NAME, "N220"),
+		},
+		.callback = dmi_check_cb,
+	},
+	{
 		.ident = "NC10",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),
@@ -138,8 +147,11 @@ static int __init samsung_init(void)
 	pci_device = pci_get_device(PCI_VENDOR_ID_INTEL, 0x27ae, NULL);
 	if (!pci_device) {
 		pci_device = pci_get_device(PCI_VENDOR_ID_INTEL, 0x2a02, NULL);
-		if (!pci_device)
+		if (!pci_device) {
+			pci_device = pci_get_device(PCI_VENDOR_ID_INTEL, 0xa011, NULL);
+			if (!pci_device)
 			return -ENODEV;
+		}
 	}
 
 	/* create a backlight device to talk to this one */
@@ -175,5 +187,6 @@ MODULE_DESCRIPTION("Samsung Backlight dr
 MODULE_LICENSE("GPL");
 MODULE_ALIAS("dmi:*:svnSAMSUNGELECTRONICSCO.,LTD.:pnN120:*:rnN120:*");
 MODULE_ALIAS("dmi:*:svnSAMSUNGELECTRONICSCO.,LTD.:pnN130:*:rnN130:*");
+MODULE_ALIAS("dmi:*:svnSAMSUNGELECTRONICSCO.,LTD.:pnN220:*:rnN220:*");
 MODULE_ALIAS("dmi:*:svnSAMSUNGELECTRONICSCO.,LTD.:pnNC10:*:rnNC10:*");
 MODULE_ALIAS("dmi:*:svnSAMSUNGELECTRONICSCO.,LTD.:pnSQ45S70S:*:rnSQ45S70S:*");

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-31  0:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-30 16:06 Samsung N220 backlight support Christian Hesse
2010-01-30 16:28 ` Greg KH
2010-01-30 18:37   ` Christian Hesse
2010-01-31  0:33     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox