diff options
Diffstat (limited to 'drivers/misc/msi-laptop.c')
-rw-r--r-- | drivers/misc/msi-laptop.c | 44 |
1 files changed, 41 insertions, 3 deletions
diff --git a/drivers/misc/msi-laptop.c b/drivers/misc/msi-laptop.c index 41e901f53e7c..932a415197b3 100644 --- a/drivers/misc/msi-laptop.c +++ b/drivers/misc/msi-laptop.c | |||
@@ -23,6 +23,8 @@ | |||
23 | * msi-laptop.c - MSI S270 laptop support. This laptop is sold under | 23 | * msi-laptop.c - MSI S270 laptop support. This laptop is sold under |
24 | * various brands, including "Cytron/TCM/Medion/Tchibo MD96100". | 24 | * various brands, including "Cytron/TCM/Medion/Tchibo MD96100". |
25 | * | 25 | * |
26 | * Driver also supports S271, S420 models. | ||
27 | * | ||
26 | * This driver exports a few files in /sys/devices/platform/msi-laptop-pf/: | 28 | * This driver exports a few files in /sys/devices/platform/msi-laptop-pf/: |
27 | * | 29 | * |
28 | * lcd_level - Screen brightness: contains a single integer in the | 30 | * lcd_level - Screen brightness: contains a single integer in the |
@@ -281,25 +283,56 @@ static struct platform_device *msipf_device; | |||
281 | 283 | ||
282 | /* Initialization */ | 284 | /* Initialization */ |
283 | 285 | ||
286 | static int dmi_check_cb(struct dmi_system_id *id) | ||
287 | { | ||
288 | printk("msi-laptop: Identified laptop model '%s'.\n", id->ident); | ||
289 | return 0; | ||
290 | } | ||
291 | |||
284 | static struct dmi_system_id __initdata msi_dmi_table[] = { | 292 | static struct dmi_system_id __initdata msi_dmi_table[] = { |
285 | { | 293 | { |
286 | .ident = "MSI S270", | 294 | .ident = "MSI S270", |
287 | .matches = { | 295 | .matches = { |
288 | DMI_MATCH(DMI_SYS_VENDOR, "MICRO-STAR INT'L CO.,LTD"), | 296 | DMI_MATCH(DMI_SYS_VENDOR, "MICRO-STAR INT'L CO.,LTD"), |
289 | DMI_MATCH(DMI_PRODUCT_NAME, "MS-1013"), | 297 | DMI_MATCH(DMI_PRODUCT_NAME, "MS-1013"), |
290 | } | 298 | DMI_MATCH(DMI_PRODUCT_VERSION, "0131"), |
299 | DMI_MATCH(DMI_CHASSIS_VENDOR, "MICRO-STAR INT'L CO.,LTD") | ||
300 | }, | ||
301 | .callback = dmi_check_cb | ||
302 | }, | ||
303 | { | ||
304 | .ident = "MSI S271", | ||
305 | .matches = { | ||
306 | DMI_MATCH(DMI_SYS_VENDOR, "Micro-Star International"), | ||
307 | DMI_MATCH(DMI_PRODUCT_NAME, "MS-1058"), | ||
308 | DMI_MATCH(DMI_PRODUCT_VERSION, "0581"), | ||
309 | DMI_MATCH(DMI_BOARD_NAME, "MS-1058") | ||
310 | }, | ||
311 | .callback = dmi_check_cb | ||
312 | }, | ||
313 | { | ||
314 | .ident = "MSI S420", | ||
315 | .matches = { | ||
316 | DMI_MATCH(DMI_SYS_VENDOR, "Micro-Star International"), | ||
317 | DMI_MATCH(DMI_PRODUCT_NAME, "MS-1412"), | ||
318 | DMI_MATCH(DMI_BOARD_VENDOR, "MSI"), | ||
319 | DMI_MATCH(DMI_BOARD_NAME, "MS-1412") | ||
320 | }, | ||
321 | .callback = dmi_check_cb | ||
291 | }, | 322 | }, |
292 | { | 323 | { |
293 | .ident = "Medion MD96100", | 324 | .ident = "Medion MD96100", |
294 | .matches = { | 325 | .matches = { |
295 | DMI_MATCH(DMI_SYS_VENDOR, "NOTEBOOK"), | 326 | DMI_MATCH(DMI_SYS_VENDOR, "NOTEBOOK"), |
296 | DMI_MATCH(DMI_PRODUCT_NAME, "SAM2000"), | 327 | DMI_MATCH(DMI_PRODUCT_NAME, "SAM2000"), |
297 | } | 328 | DMI_MATCH(DMI_PRODUCT_VERSION, "0131"), |
329 | DMI_MATCH(DMI_CHASSIS_VENDOR, "MICRO-STAR INT'L CO.,LTD") | ||
330 | }, | ||
331 | .callback = dmi_check_cb | ||
298 | }, | 332 | }, |
299 | { } | 333 | { } |
300 | }; | 334 | }; |
301 | 335 | ||
302 | |||
303 | static int __init msi_init(void) | 336 | static int __init msi_init(void) |
304 | { | 337 | { |
305 | int ret; | 338 | int ret; |
@@ -394,3 +427,8 @@ MODULE_AUTHOR("Lennart Poettering"); | |||
394 | MODULE_DESCRIPTION("MSI Laptop Support"); | 427 | MODULE_DESCRIPTION("MSI Laptop Support"); |
395 | MODULE_VERSION(MSI_DRIVER_VERSION); | 428 | MODULE_VERSION(MSI_DRIVER_VERSION); |
396 | MODULE_LICENSE("GPL"); | 429 | MODULE_LICENSE("GPL"); |
430 | |||
431 | MODULE_ALIAS("dmi:*:svnMICRO-STARINT'LCO.,LTD:pnMS-1013:pvr0131*:cvnMICRO-STARINT'LCO.,LTD:ct10:*"); | ||
432 | MODULE_ALIAS("dmi:*:svnMicro-StarInternational:pnMS-1058:pvr0581:rvnMSI:rnMS-1058:*:ct10:*"); | ||
433 | MODULE_ALIAS("dmi:*:svnMicro-StarInternational:pnMS-1412:*:rvnMSI:rnMS-1412:*:cvnMICRO-STARINT'LCO.,LTD:ct10:*"); | ||
434 | MODULE_ALIAS("dmi:*:svnNOTEBOOK:pnSAM2000:pvr0131*:cvnMICRO-STARINT'LCO.,LTD:ct10:*"); | ||