Skip to content

Commit

Permalink
Staging: comedi: Remove pc236_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 d9752ee commit 57ad869
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/staging/comedi/drivers/amplc_pc236.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ unused.
enum pc236_bustype { isa_bustype, pci_bustype };
enum pc236_model { pc36at_model, pci236_model, anypci_model };

typedef struct pc236_board_struct {
struct pc236_board {
const char *name;
const char *fancy_name;
unsigned short devid;
enum pc236_bustype bustype;
enum pc236_model model;
} pc236_board;
static const pc236_board pc236_boards[] = {
};
static const struct pc236_board pc236_boards[] = {
{
name: "pc36at",
fancy_name:"PC36AT",
Expand Down Expand Up @@ -143,7 +143,7 @@ MODULE_DEVICE_TABLE(pci, pc236_pci_table);
/*
* Useful for shorthand access to the particular board structure
*/
#define thisboard ((const pc236_board *)dev->board_ptr)
#define thisboard ((const struct pc236_board *)dev->board_ptr)

/* this structure is for data unique to this hardware driver. If
several hardware drivers keep similar information in this structure,
Expand Down Expand Up @@ -173,8 +173,8 @@ static struct comedi_driver driver_amplc_pc236 = {
attach:pc236_attach,
detach:pc236_detach,
board_name:&pc236_boards[0].name,
offset:sizeof(pc236_board),
num_names:sizeof(pc236_boards) / sizeof(pc236_board),
offset:sizeof(struct pc236_board),
num_names:sizeof(pc236_boards) / sizeof(struct pc236_board),
};

#ifdef CONFIG_COMEDI_PCI
Expand Down

0 comments on commit 57ad869

Please sign in to comment.