Commit d76fdfcc authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: adl_pci9111: remove PCI9111_HR_DEVICE_ID define

This define is only used in the pci_device_id table and doesn't add
any additional clarity to the code. Remove the define and just open
code the value.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 64b99c4c
...@@ -75,8 +75,6 @@ a multiple of chanlist_len*convert_arg. ...@@ -75,8 +75,6 @@ a multiple of chanlist_len*convert_arg.
#include "plx9052.h" #include "plx9052.h"
#include "comedi_fc.h" #include "comedi_fc.h"
#define PCI9111_HR_DEVICE_ID 0x9111
#define PCI9111_FIFO_HALF_SIZE 512 #define PCI9111_FIFO_HALF_SIZE 512
#define PCI9111_AI_ACQUISITION_PERIOD_MIN_NS 10000 #define PCI9111_AI_ACQUISITION_PERIOD_MIN_NS 10000
...@@ -883,7 +881,7 @@ static int pci9111_pci_probe(struct pci_dev *dev, ...@@ -883,7 +881,7 @@ static int pci9111_pci_probe(struct pci_dev *dev,
} }
static const struct pci_device_id pci9111_pci_table[] = { static const struct pci_device_id pci9111_pci_table[] = {
{ PCI_DEVICE(PCI_VENDOR_ID_ADLINK, PCI9111_HR_DEVICE_ID) }, { PCI_DEVICE(PCI_VENDOR_ID_ADLINK, 0x9111) },
/* { PCI_DEVICE(PCI_VENDOR_ID_ADLINK, PCI9111_HG_DEVICE_ID) }, */ /* { PCI_DEVICE(PCI_VENDOR_ID_ADLINK, PCI9111_HG_DEVICE_ID) }, */
{ 0 } { 0 }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment