]> git.baikalelectronics.ru Git - kernel.git/commit
staging/comedi/addi: Convert pci_table entries to PCI_DEVICE (if PCI_ANY_ID is used)
authorPeter Huewe <peterhuewe@gmx.de>
Sun, 6 Nov 2011 22:48:17 +0000 (23:48 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 02:39:36 +0000 (18:39 -0800)
commit29bc79e02ae0ac538a2cf5d2ad9b8ee11c0b257f
treeef58a34187b6cbdbcb63a433c5518700fc6d0b2d
parent52f9515fca17c1e71cd97c4c1f96a3971a7c2e59
staging/comedi/addi: Convert pci_table entries to PCI_DEVICE (if PCI_ANY_ID is used)

This patch converts pci_table entries to use the PCI_DEVICE macro,
if .subvendor and .subdevice are set to PCI_ANY_ID,
and thus improves readablity.

Since the driver_data field isn't used anywhere we can also drop the
assignments for class, class_mask and driver_data.

Moreover the hardcoded 0x15B8 was replaced by the more readable
PCI_VENDOR_ID_ADDIDATA

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/addi-data/addi_common.c