From: Bill Pemberton Date: Tue, 17 Mar 2009 02:15:56 +0000 (-0400) Subject: Staging: comedi: Remove NI_660xRegisterData typedef X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0cb5e8ff4502d60967177038e2d740dae759e4b2;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git Staging: comedi: Remove NI_660xRegisterData typedef Signed-off-by: Bill Pemberton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_660x.c b/drivers/staging/comedi/drivers/ni_660x.c index 0af2049feb99..2a3c1302d620 100644 --- a/drivers/staging/comedi/drivers/ni_660x.c +++ b/drivers/staging/comedi/drivers/ni_660x.c @@ -192,14 +192,16 @@ static inline unsigned NI_660X_GPCT_SUBDEV(unsigned index) return NI_660X_GPCT_SUBDEV_0 + index; } -typedef struct { +struct NI_660xRegisterData { + const char *name; // Register Name int offset; // Offset from base address from GPCT chip enum ni_660x_register_direction direction; enum ni_660x_register_width size; // 1 byte, 2 bytes, or 4 bytes -} NI_660xRegisterData; +}; + -static const NI_660xRegisterData registerData[NumRegisters] = { +static const struct NI_660xRegisterData registerData[NumRegisters] = { {"G0 Interrupt Acknowledge", 0x004, NI_660x_WRITE, DATA_2B}, {"G0 Status Register", 0x004, NI_660x_READ, DATA_2B}, {"G1 Interrupt Acknowledge", 0x006, NI_660x_WRITE, DATA_2B},