diff options
| author | Ingo Molnar <mingo@kernel.org> | 2014-04-14 10:44:42 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2014-04-14 10:44:42 -0400 |
| commit | 740c699a8d316c8bf8593f19e2ca47795e690622 (patch) | |
| tree | a78886955770a477945c5d84e06b2e7678733b54 /include/linux/mod_devicetable.h | |
| parent | e69af4657e7764d03ad555f0b583d9c4217bcefa (diff) | |
| parent | c9eaa447e77efe77b7fa4c953bd62de8297fd6c5 (diff) | |
Merge tag 'v3.15-rc1' into perf/urgent
Pick up the latest fixes.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/mod_devicetable.h')
| -rw-r--r-- | include/linux/mod_devicetable.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 45e921401b06..44eeef0da186 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h | |||
| @@ -432,6 +432,14 @@ struct spi_device_id { | |||
| 432 | kernel_ulong_t driver_data; /* Data private to the driver */ | 432 | kernel_ulong_t driver_data; /* Data private to the driver */ |
| 433 | }; | 433 | }; |
| 434 | 434 | ||
| 435 | #define SPMI_NAME_SIZE 32 | ||
| 436 | #define SPMI_MODULE_PREFIX "spmi:" | ||
| 437 | |||
| 438 | struct spmi_device_id { | ||
| 439 | char name[SPMI_NAME_SIZE]; | ||
| 440 | kernel_ulong_t driver_data; /* Data private to the driver */ | ||
| 441 | }; | ||
| 442 | |||
| 435 | /* dmi */ | 443 | /* dmi */ |
| 436 | enum dmi_field { | 444 | enum dmi_field { |
| 437 | DMI_NONE, | 445 | DMI_NONE, |
| @@ -548,6 +556,11 @@ struct amba_id { | |||
| 548 | * See documentation of "x86_match_cpu" for details. | 556 | * See documentation of "x86_match_cpu" for details. |
| 549 | */ | 557 | */ |
| 550 | 558 | ||
| 559 | /* | ||
| 560 | * MODULE_DEVICE_TABLE expects this struct to be called x86cpu_device_id. | ||
| 561 | * Although gcc seems to ignore this error, clang fails without this define. | ||
| 562 | */ | ||
| 563 | #define x86cpu_device_id x86_cpu_id | ||
| 551 | struct x86_cpu_id { | 564 | struct x86_cpu_id { |
| 552 | __u16 vendor; | 565 | __u16 vendor; |
| 553 | __u16 family; | 566 | __u16 family; |
| @@ -564,6 +577,15 @@ struct x86_cpu_id { | |||
| 564 | #define X86_MODEL_ANY 0 | 577 | #define X86_MODEL_ANY 0 |
| 565 | #define X86_FEATURE_ANY 0 /* Same as FPU, you can't test for that */ | 578 | #define X86_FEATURE_ANY 0 /* Same as FPU, you can't test for that */ |
| 566 | 579 | ||
| 580 | /* | ||
| 581 | * Generic table type for matching CPU features. | ||
| 582 | * @feature: the bit number of the feature (0 - 65535) | ||
| 583 | */ | ||
| 584 | |||
| 585 | struct cpu_feature { | ||
| 586 | __u16 feature; | ||
| 587 | }; | ||
| 588 | |||
| 567 | #define IPACK_ANY_FORMAT 0xff | 589 | #define IPACK_ANY_FORMAT 0xff |
| 568 | #define IPACK_ANY_ID (~0) | 590 | #define IPACK_ANY_ID (~0) |
| 569 | struct ipack_device_id { | 591 | struct ipack_device_id { |
| @@ -599,4 +621,9 @@ struct rio_device_id { | |||
| 599 | __u16 asm_did, asm_vid; | 621 | __u16 asm_did, asm_vid; |
| 600 | }; | 622 | }; |
| 601 | 623 | ||
| 624 | struct mcb_device_id { | ||
| 625 | __u16 device; | ||
| 626 | kernel_ulong_t driver_data; | ||
| 627 | }; | ||
| 628 | |||
| 602 | #endif /* LINUX_MOD_DEVICETABLE_H */ | 629 | #endif /* LINUX_MOD_DEVICETABLE_H */ |
