diff options
author | David S. Miller <davem@davemloft.net> | 2010-02-28 22:23:06 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-28 22:23:06 -0500 |
commit | 47871889c601d8199c51a4086f77eebd77c29b0b (patch) | |
tree | 40cdcac3bff0ee40cc33dcca61d0577cdf965f77 /drivers/platform/x86/classmate-laptop.c | |
parent | c16cc0b464b8876cfd57ce1c1dbcb6f9a6a0bce3 (diff) | |
parent | 30ff056c42c665b9ea535d8515890857ae382540 (diff) |
Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
Conflicts:
drivers/firmware/iscsi_ibft.c
Diffstat (limited to 'drivers/platform/x86/classmate-laptop.c')
-rw-r--r-- | drivers/platform/x86/classmate-laptop.c | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/drivers/platform/x86/classmate-laptop.c b/drivers/platform/x86/classmate-laptop.c index ed90082cdf1d..8cb20e45bad6 100644 --- a/drivers/platform/x86/classmate-laptop.c +++ b/drivers/platform/x86/classmate-laptop.c | |||
@@ -34,6 +34,11 @@ struct cmpc_accel { | |||
34 | #define CMPC_ACCEL_SENSITIVITY_DEFAULT 5 | 34 | #define CMPC_ACCEL_SENSITIVITY_DEFAULT 5 |
35 | 35 | ||
36 | 36 | ||
37 | #define CMPC_ACCEL_HID "ACCE0000" | ||
38 | #define CMPC_TABLET_HID "TBLT0000" | ||
39 | #define CMPC_BL_HID "IPML200" | ||
40 | #define CMPC_KEYS_HID "FnBT0000" | ||
41 | |||
37 | /* | 42 | /* |
38 | * Generic input device code. | 43 | * Generic input device code. |
39 | */ | 44 | */ |
@@ -282,10 +287,9 @@ static int cmpc_accel_remove(struct acpi_device *acpi, int type) | |||
282 | } | 287 | } |
283 | 288 | ||
284 | static const struct acpi_device_id cmpc_accel_device_ids[] = { | 289 | static const struct acpi_device_id cmpc_accel_device_ids[] = { |
285 | {"ACCE0000", 0}, | 290 | {CMPC_ACCEL_HID, 0}, |
286 | {"", 0} | 291 | {"", 0} |
287 | }; | 292 | }; |
288 | MODULE_DEVICE_TABLE(acpi, cmpc_accel_device_ids); | ||
289 | 293 | ||
290 | static struct acpi_driver cmpc_accel_acpi_driver = { | 294 | static struct acpi_driver cmpc_accel_acpi_driver = { |
291 | .owner = THIS_MODULE, | 295 | .owner = THIS_MODULE, |
@@ -366,10 +370,9 @@ static int cmpc_tablet_resume(struct acpi_device *acpi) | |||
366 | } | 370 | } |
367 | 371 | ||
368 | static const struct acpi_device_id cmpc_tablet_device_ids[] = { | 372 | static const struct acpi_device_id cmpc_tablet_device_ids[] = { |
369 | {"TBLT0000", 0}, | 373 | {CMPC_TABLET_HID, 0}, |
370 | {"", 0} | 374 | {"", 0} |
371 | }; | 375 | }; |
372 | MODULE_DEVICE_TABLE(acpi, cmpc_tablet_device_ids); | ||
373 | 376 | ||
374 | static struct acpi_driver cmpc_tablet_acpi_driver = { | 377 | static struct acpi_driver cmpc_tablet_acpi_driver = { |
375 | .owner = THIS_MODULE, | 378 | .owner = THIS_MODULE, |
@@ -477,17 +480,16 @@ static int cmpc_bl_remove(struct acpi_device *acpi, int type) | |||
477 | return 0; | 480 | return 0; |
478 | } | 481 | } |
479 | 482 | ||
480 | static const struct acpi_device_id cmpc_device_ids[] = { | 483 | static const struct acpi_device_id cmpc_bl_device_ids[] = { |
481 | {"IPML200", 0}, | 484 | {CMPC_BL_HID, 0}, |
482 | {"", 0} | 485 | {"", 0} |
483 | }; | 486 | }; |
484 | MODULE_DEVICE_TABLE(acpi, cmpc_device_ids); | ||
485 | 487 | ||
486 | static struct acpi_driver cmpc_bl_acpi_driver = { | 488 | static struct acpi_driver cmpc_bl_acpi_driver = { |
487 | .owner = THIS_MODULE, | 489 | .owner = THIS_MODULE, |
488 | .name = "cmpc", | 490 | .name = "cmpc", |
489 | .class = "cmpc", | 491 | .class = "cmpc", |
490 | .ids = cmpc_device_ids, | 492 | .ids = cmpc_bl_device_ids, |
491 | .ops = { | 493 | .ops = { |
492 | .add = cmpc_bl_add, | 494 | .add = cmpc_bl_add, |
493 | .remove = cmpc_bl_remove | 495 | .remove = cmpc_bl_remove |
@@ -540,10 +542,9 @@ static int cmpc_keys_remove(struct acpi_device *acpi, int type) | |||
540 | } | 542 | } |
541 | 543 | ||
542 | static const struct acpi_device_id cmpc_keys_device_ids[] = { | 544 | static const struct acpi_device_id cmpc_keys_device_ids[] = { |
543 | {"FnBT0000", 0}, | 545 | {CMPC_KEYS_HID, 0}, |
544 | {"", 0} | 546 | {"", 0} |
545 | }; | 547 | }; |
546 | MODULE_DEVICE_TABLE(acpi, cmpc_keys_device_ids); | ||
547 | 548 | ||
548 | static struct acpi_driver cmpc_keys_acpi_driver = { | 549 | static struct acpi_driver cmpc_keys_acpi_driver = { |
549 | .owner = THIS_MODULE, | 550 | .owner = THIS_MODULE, |
@@ -607,3 +608,13 @@ static void cmpc_exit(void) | |||
607 | 608 | ||
608 | module_init(cmpc_init); | 609 | module_init(cmpc_init); |
609 | module_exit(cmpc_exit); | 610 | module_exit(cmpc_exit); |
611 | |||
612 | static const struct acpi_device_id cmpc_device_ids[] = { | ||
613 | {CMPC_ACCEL_HID, 0}, | ||
614 | {CMPC_TABLET_HID, 0}, | ||
615 | {CMPC_BL_HID, 0}, | ||
616 | {CMPC_KEYS_HID, 0}, | ||
617 | {"", 0} | ||
618 | }; | ||
619 | |||
620 | MODULE_DEVICE_TABLE(acpi, cmpc_device_ids); | ||