From: Bill Pemberton Date: Tue, 17 Mar 2009 02:09:07 +0000 (-0400) Subject: Staging: comedi: Remove counter_mode_register_t typedef X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4b1d53f061bd3e622ba44c106e083a30a92eb223;p=linux-beck.git Staging: comedi: Remove counter_mode_register_t typedef Signed-off-by: Bill Pemberton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/s526.c b/drivers/staging/comedi/drivers/s526.c index e5ee54332e8a..08666e637e47 100644 --- a/drivers/staging/comedi/drivers/s526.c +++ b/drivers/staging/comedi/drivers/s526.c @@ -112,7 +112,7 @@ static const int s526_ports[] = { REG_EEC }; -typedef struct { +struct counter_mode_register_t { unsigned short coutSource:1; unsigned short coutPolarity:1; unsigned short autoLoadResetRcap:3; @@ -124,10 +124,10 @@ typedef struct { unsigned short outputRegLatchCtrl:1; unsigned short preloadRegSel:1; unsigned short reserved:1; -} counter_mode_register_t; +}; union { - counter_mode_register_t reg; + struct counter_mode_register_t reg; unsigned short value; } cmReg;