staging: comedi (cb_pcimdas): use PCI_DEVICE() macro
authorJavier Martinez Canillas <martinez.javier@gmail.com>
Sat, 7 Aug 2010 06:36:45 +0000 (02:36 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 31 Aug 2010 21:32:29 +0000 (14:32 -0700)
Use PCI_DEVICE() macro for pci table entries on comedi driver and thus improves readability.

Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/cb_pcimdas.c

index ced346a7cae36550bc93311e7cf4e62142233078..16c322d040fd203f9b1405cc8023678067273910 100644 (file)
@@ -126,10 +126,8 @@ static const struct cb_pcimdas_board cb_pcimdas_boards[] = {
 /* This is used by modprobe to translate PCI IDs to drivers.  Should
  * only be used for PCI and ISA-PnP devices */
 static DEFINE_PCI_DEVICE_TABLE(cb_pcimdas_pci_table) = {
-       {
-       PCI_VENDOR_ID_COMPUTERBOARDS, 0x0056, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
-       {
-       0}
+       { PCI_DEVICE(PCI_VENDOR_ID_COMPUTERBOARDS, 0x0056) },
+       { 0 }
 };
 
 MODULE_DEVICE_TABLE(pci, cb_pcimdas_pci_table);