summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi/drivers/ke_counter.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2014-03-03 16:47:35 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-04 16:40:26 -0800
commit8fff5ac61d0e937bfb5bf3d142a4d42f94dc1bf0 (patch)
tree19ea6eb7b7e498d83ac169733d8e54bc537553a0 /drivers/staging/comedi/drivers/ke_counter.c
parent553a5189318a9d8f83142b8a8141ed19f363a33f (diff)
staging: comedi: ke_counter: remove CNT_CARD_DEVICE_ID
This define is only used in the pci_device_id table and does not add any significant clarity to the code. Remove the define and just open code the value. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/drivers/ke_counter.c')
-rw-r--r--drivers/staging/comedi/drivers/ke_counter.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/ke_counter.c b/drivers/staging/comedi/drivers/ke_counter.c
index 1c32816e9130..53687fbe2c4d 100644
--- a/drivers/staging/comedi/drivers/ke_counter.c
+++ b/drivers/staging/comedi/drivers/ke_counter.c
@@ -34,8 +34,6 @@ Kolter Electronic PCI Counter Card.
#include "../comedidev.h"
-#define CNT_CARD_DEVICE_ID 0x0014
-
/*-- counter write ----------------------------------------------------------*/
/* This should be used only for resetting the counters; maybe it is better
@@ -137,7 +135,7 @@ static int ke_counter_pci_probe(struct pci_dev *dev,
}
static const struct pci_device_id ke_counter_pci_table[] = {
- { PCI_DEVICE(PCI_VENDOR_ID_KOLTER, CNT_CARD_DEVICE_ID) },
+ { PCI_DEVICE(PCI_VENDOR_ID_KOLTER, 0x0014) },
{ 0 }
};
MODULE_DEVICE_TABLE(pci, ke_counter_pci_table);