Commit cfee7b99 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: Remove cb_pcimdas_board typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent fe7858af
...@@ -83,7 +83,7 @@ See http://www.measurementcomputing.com/PDFManuals/pcim-das1602_16.pdf for more ...@@ -83,7 +83,7 @@ See http://www.measurementcomputing.com/PDFManuals/pcim-das1602_16.pdf for more
#define RESID_COUNT_L 14 #define RESID_COUNT_L 14
/* Board description */ /* Board description */
typedef struct cb_pcimdas_board_struct { struct cb_pcimdas_board {
const char *name; const char *name;
unsigned short device_id; unsigned short device_id;
int ai_se_chans; // Inputs in single-ended mode int ai_se_chans; // Inputs in single-ended mode
...@@ -98,9 +98,9 @@ typedef struct cb_pcimdas_board_struct { ...@@ -98,9 +98,9 @@ typedef struct cb_pcimdas_board_struct {
int dio_bits; // number of dio bits int dio_bits; // number of dio bits
int has_dio; // has DIO int has_dio; // has DIO
const struct comedi_lrange *ranges; const struct comedi_lrange *ranges;
} cb_pcimdas_board; };
static const cb_pcimdas_board cb_pcimdas_boards[] = { static const struct cb_pcimdas_board cb_pcimdas_boards[] = {
{ {
name: "PCIM-DAS1602/16", name: "PCIM-DAS1602/16",
device_id:0x56, device_id:0x56,
...@@ -134,7 +134,7 @@ MODULE_DEVICE_TABLE(pci, cb_pcimdas_pci_table); ...@@ -134,7 +134,7 @@ MODULE_DEVICE_TABLE(pci, cb_pcimdas_pci_table);
/* /*
* Useful for shorthand access to the particular board structure * Useful for shorthand access to the particular board structure
*/ */
#define thisboard ((const cb_pcimdas_board *)dev->board_ptr) #define thisboard ((const struct cb_pcimdas_board *)dev->board_ptr)
/* this structure is for data unique to this hardware driver. If /* this structure is for data unique to this hardware driver. If
several hardware drivers keep similar information in this structure, several hardware drivers keep similar information in this structure,
......
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