diff options
author | Joe Perches <joe@perches.com> | 2013-12-13 13:36:22 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-12-13 13:36:22 -0500 |
commit | 92e112fdbb3cb55b43390426501a7efacd893b96 (patch) | |
tree | 4f77ae248e2e7fc8a5633e2feb6e83e5c0f0de5f /include/linux/pci.h | |
parent | 5b764b834ea925b7fc87df4a87a0fde95acbecb9 (diff) |
PCI/checkpatch: Deprecate DEFINE_PCI_DEVICE_TABLE
Prefer use of the direct definition of struct pci_device_id instead of
indirection via macro DEFINE_PCI_DEVICE_TABLE.
Update the PCI documentation to deprecate DEFINE_PCI_DEVICE_TABLE. Update
checkpatch adding --fix option.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 1084a15175e0..88674b0947fb 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -634,8 +634,7 @@ struct pci_driver { | |||
634 | * DEFINE_PCI_DEVICE_TABLE - macro used to describe a pci device table | 634 | * DEFINE_PCI_DEVICE_TABLE - macro used to describe a pci device table |
635 | * @_table: device table name | 635 | * @_table: device table name |
636 | * | 636 | * |
637 | * This macro is used to create a struct pci_device_id array (a device table) | 637 | * This macro is deprecated and should not be used in new code. |
638 | * in a generic manner. | ||
639 | */ | 638 | */ |
640 | #define DEFINE_PCI_DEVICE_TABLE(_table) \ | 639 | #define DEFINE_PCI_DEVICE_TABLE(_table) \ |
641 | const struct pci_device_id _table[] | 640 | const struct pci_device_id _table[] |