Skip to content

Commit

Permalink
staging: comedi: comedidev.h: add PCI_VENDOR_ID_ADVANTECH
Browse files Browse the repository at this point in the history
Add a define for the Advantech Co., Ltd. PCI vendor id. Remove the
duplicates in the drivers.

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>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Oct 25, 2012
1 parent 809ec5b commit 12f07ba
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions drivers/staging/comedi/comedidev.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
#define PCI_VENDOR_ID_ICP 0x104c
#define PCI_VENDOR_ID_CONTEC 0x1221
#define PCI_VENDOR_ID_CB 0x1307 /* Measurement Computing */
#define PCI_VENDOR_ID_ADVANTECH 0x13fe
#define PCI_VENDOR_ID_ADLINK 0x144a

#define COMEDI_NUM_MINORS 0x100
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/comedi/drivers/adv_pci1710.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ Configuration options:
* correct channel number on every 12 bit
* sample */

#define PCI_VENDOR_ID_ADVANTECH 0x13fe

/* hardware types of the cards */
#define TYPE_PCI171X 0
#define TYPE_PCI1713 2
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/comedi/drivers/adv_pci1723.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ configures all channels in the same group.

#include "../comedidev.h"

#define PCI_VENDOR_ID_ADVANTECH 0x13fe /* Advantech PCI vendor ID */

/* all the registers for the pci1723 board */
#define PCI1723_DA(N) ((N)<<1) /* W: D/A register N (0 to 7) */

Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/comedi/drivers/adv_pci_dio.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ Configuration options:
#include "8255.h"
#include "8253.h"

#define PCI_VENDOR_ID_ADVANTECH 0x13fe

/* hardware types of the cards */
enum hw_cards_id {
TYPE_PCI1730, TYPE_PCI1733, TYPE_PCI1734, TYPE_PCI1735, TYPE_PCI1736,
Expand Down

0 comments on commit 12f07ba

Please sign in to comment.