Skip to content

Commit

Permalink
Staging: comedi: Remove pcmda12_board typedef
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent e15849e commit 387c136
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/staging/comedi/drivers/pcmda12.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ Configuration Options:
/*
* Bords
*/
typedef struct pcmda12_board_struct {
struct pcmda12_board {
const char *name;
} pcmda12_board;
};

/* note these have no effect and are merely here for reference..
these are configured by jumpering the board! */
Expand All @@ -81,7 +81,7 @@ static const struct comedi_lrange pcmda12_ranges = {
}
};

static const pcmda12_board pcmda12_boards[] = {
static const struct pcmda12_board pcmda12_boards[] = {
{
name: "pcmda12",
},
Expand All @@ -90,7 +90,7 @@ static const pcmda12_board pcmda12_boards[] = {
/*
* Useful for shorthand access to the particular board structure
*/
#define thisboard ((const pcmda12_board *)dev->board_ptr)
#define thisboard ((const struct pcmda12_board *)dev->board_ptr)

struct pcmda12_private {

Expand Down Expand Up @@ -136,8 +136,8 @@ static struct comedi_driver driver = {
* devices are such boards.
*/
board_name:&pcmda12_boards[0].name,
offset:sizeof(pcmda12_board),
num_names:sizeof(pcmda12_boards) / sizeof(pcmda12_board),
offset:sizeof(struct pcmda12_board),
num_names:sizeof(pcmda12_boards) / sizeof(struct pcmda12_board),
};

static int ao_winsn(struct comedi_device * dev, struct comedi_subdevice * s,
Expand Down

0 comments on commit 387c136

Please sign in to comment.