Skip to content

Commit

Permalink
Add Samsung R468/R418 to model list
Browse files Browse the repository at this point in the history
  • Loading branch information
elemc committed Nov 9, 2010
1 parent 5b4e3ed commit a53d19a
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions samsung-backlight.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*
* Samsung N130 and NC10 Laptop Backlight driver
* Samsung N130, NC10 and R468/R418 Laptop Backlight driver
*
* Copyright (C) 2010 elemc, sergem (fedora@conference.jabber.ru)
* Copyright (C) 2009 Greg Kroah-Hartman (gregkh@suse.de)
* Copyright (C) 2009 Novell Inc.
*
Expand Down Expand Up @@ -122,6 +123,16 @@ static struct dmi_system_id __initdata samsung_dmi_table[] = {
},
.callback = dmi_check_cb,
},
{
.ident = "R468/R418",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),
DMI_MATCH(DMI_PRODUCT_NAME, "R468/R418"),
DMI_MATCH(DMI_BOARD_NAME, "R468/R418"),
},
.callback = dmi_check_cb,
},

{ },
};

Expand All @@ -135,12 +146,15 @@ static int __init samsung_init(void)

/*
* The Samsung N120, N130, and NC10 use pci device id 0x27ae, while the
* NP-Q45 uses 0x2a02. Odds are we might need to add more to the
* NP-Q45 uses 0x2a02, and R468/R418 uses 0x2a42.
* Odds are we might need to add more to the
* list over time...
*/
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)
pci_device = pci_get_device(PCI_VENDOR_ID_INTEL, 0x2a42, NULL);
if (!pci_device)
return -ENODEV;
}
Expand Down Expand Up @@ -180,3 +194,4 @@ MODULE_ALIAS("dmi:*:svnSAMSUNGELECTRONICSCO.,LTD.:pnN120:*:rnN120:*");
MODULE_ALIAS("dmi:*:svnSAMSUNGELECTRONICSCO.,LTD.:pnN130:*:rnN130:*");
MODULE_ALIAS("dmi:*:svnSAMSUNGELECTRONICSCO.,LTD.:pnNC10:*:rnNC10:*");
MODULE_ALIAS("dmi:*:svnSAMSUNGELECTRONICSCO.,LTD.:pnSQ45S70S:*:rnSQ45S70S:*");
MODULE_ALIAS("dmi:*:svnSAMSUNGELECTRONICSCO.,LTD.:pnR468/R418:*:rnR468/R418:*");

0 comments on commit a53d19a

Please sign in to comment.