From: Christian Hesse <mail@earthworm.de>
To: linux-kernel@vger.kernel.org
Cc: Greg KH <gregkh@suse.de>
Subject: Samsung N220 backlight support
Date: Sat, 30 Jan 2010 17:06:18 +0100 [thread overview]
Message-ID: <201001301706.18245.mail@earthworm.de> (raw)
[-- 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:*");
next reply other threads:[~2010-01-30 16:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-30 16:06 Christian Hesse [this message]
2010-01-30 16:28 ` Samsung N220 backlight support Greg KH
2010-01-30 18:37 ` Christian Hesse
2010-01-31 0:33 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201001301706.18245.mail@earthworm.de \
--to=mail@earthworm.de \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.