0
0
mirror of https://mirrors.bfsu.edu.cn/git/linux.git synced 2024-12-21 01:54:51 +08:00
linux/drivers/ptp
Benoit Taine 9baa3c34ac PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to
meet kernel coding style guidelines.  This issue was reported by checkpatch.

A simplified version of the semantic patch that makes this change is as
follows (http://coccinelle.lip6.fr/):

// <smpl>

@@
identifier i;
declarer name DEFINE_PCI_DEVICE_TABLE;
initializer z;
@@

- DEFINE_PCI_DEVICE_TABLE(i)
+ const struct pci_device_id i[]
= z;

// </smpl>

[bhelgaas: add semantic patch]
Signed-off-by: Benoit Taine <benoit.taine@lip6.fr>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2014-08-12 12:15:14 -06:00
..
Kconfig ptp: ptp_pch depends on x86_32 2014-06-17 15:43:48 -07:00
Makefile supports eg20t ptp clock 2012-03-09 13:55:34 -08:00
ptp_chardev.c ptp: Allow reassigning calibration pin function 2014-07-01 18:52:54 -07:00
ptp_clock.c ptp: validate the requested frequency adjustment. 2014-04-28 13:28:43 -04:00
ptp_ixp46x.c ptp: drivers: set the number of programmable pins. 2014-03-21 14:21:14 -04:00
ptp_pch.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
ptp_private.h ptp: expose the programmable pins via sysfs 2014-03-21 14:21:14 -04:00
ptp_sysfs.c ptp: expose the programmable pins via sysfs 2014-03-21 14:21:14 -04:00