From: Bill Pemberton Date: Tue, 17 Mar 2009 02:14:30 +0000 (-0400) Subject: Staging: comedi: Remove boardtype_t typedef in dt2801.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d438a1795754030b9b389d7a64981907a1869dc7;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git Staging: comedi: Remove boardtype_t typedef in dt2801.c Signed-off-by: Bill Pemberton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/dt2801.c b/drivers/staging/comedi/drivers/dt2801.c index 0915d39101b8..0374e9f82d26 100644 --- a/drivers/staging/comedi/drivers/dt2801.c +++ b/drivers/staging/comedi/drivers/dt2801.c @@ -135,7 +135,8 @@ static const struct comedi_lrange range_dt2801_ai_pgl_unipolar = { 4, { } }; -typedef struct { +struct dt2801_board { + const char *name; int boardcode; int ad_diff; @@ -143,12 +144,13 @@ typedef struct { int adbits; int adrangetype; int dabits; -} boardtype_t; +}; + /* Typeid's for the different boards of the DT2801-series (taken from the test-software, that comes with the board) */ -static const boardtype_t boardtypes[] = { +static const struct dt2801_board boardtypes[] = { { name: "dt2801", boardcode:0x09, @@ -216,7 +218,7 @@ static const boardtype_t boardtypes[] = { }; #define n_boardtypes ((sizeof(boardtypes))/(sizeof(boardtypes[0]))) -#define boardtype (*(const boardtype_t *)dev->board_ptr) +#define boardtype (*(const struct dt2801_board *)dev->board_ptr) typedef struct { const struct comedi_lrange *dac_range_types[2];