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

Staging: comedi: Remove das800_board typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 65a457a1
...@@ -106,12 +106,12 @@ cmd triggers supported: ...@@ -106,12 +106,12 @@ cmd triggers supported:
#define STATUS2_INTE 0X20 #define STATUS2_INTE 0X20
#define DAS800_ID 7 #define DAS800_ID 7
typedef struct das800_board_struct { struct das800_board {
const char *name; const char *name;
int ai_speed; int ai_speed;
const struct comedi_lrange *ai_range; const struct comedi_lrange *ai_range;
int resolution; int resolution;
} das800_board; };
//analog input ranges //analog input ranges
static const struct comedi_lrange range_das800_ai = { static const struct comedi_lrange range_das800_ai = {
...@@ -182,7 +182,7 @@ static const struct comedi_lrange range_das80216_ai = { ...@@ -182,7 +182,7 @@ static const struct comedi_lrange range_das80216_ai = {
enum { das800, ciodas800, das801, ciodas801, das802, ciodas802, ciodas80216 }; enum { das800, ciodas800, das801, ciodas801, das802, ciodas802, ciodas80216 };
static const das800_board das800_boards[] = { static const struct das800_board das800_boards[] = {
{ {
name: "das-800", name: "das-800",
ai_speed:25000, ai_speed:25000,
...@@ -230,7 +230,7 @@ static const das800_board das800_boards[] = { ...@@ -230,7 +230,7 @@ static const das800_board das800_boards[] = {
/* /*
* Useful for shorthand access to the particular board structure * Useful for shorthand access to the particular board structure
*/ */
#define thisboard ((const das800_board *)dev->board_ptr) #define thisboard ((const struct das800_board *)dev->board_ptr)
typedef struct { typedef struct {
volatile unsigned int count; /* number of data points left to be taken */ volatile unsigned int count; /* number of data points left to be taken */
...@@ -251,9 +251,9 @@ static struct comedi_driver driver_das800 = { ...@@ -251,9 +251,9 @@ static struct comedi_driver driver_das800 = {
module:THIS_MODULE, module:THIS_MODULE,
attach:das800_attach, attach:das800_attach,
detach:das800_detach, detach:das800_detach,
num_names:sizeof(das800_boards) / sizeof(das800_board), num_names:sizeof(das800_boards) / sizeof(struct das800_board),
board_name:&das800_boards[0].name, board_name:&das800_boards[0].name,
offset:sizeof(das800_board), offset:sizeof(struct das800_board),
}; };
static irqreturn_t das800_interrupt(int irq, void *d PT_REGS_ARG); static irqreturn_t das800_interrupt(int irq, void *d PT_REGS_ARG);
......
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