aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-19 17:59:23 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 17:54:17 -0400
commit01983c39f023efa7204eb6b61480d5c495124240 (patch)
tree3dd5955307f98b50f20832ed6368ee76cf069b91
parent92b635c5bea18d7eb3c46bfdcc930d9d86d3d177 (diff)
Staging: comedi: Remove atao_board typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/comedi/drivers/ni_at_ao.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/staging/comedi/drivers/ni_at_ao.c b/drivers/staging/comedi/drivers/ni_at_ao.c
index efacfda03b2f..2cc46b672588 100644
--- a/drivers/staging/comedi/drivers/ni_at_ao.c
+++ b/drivers/staging/comedi/drivers/ni_at_ao.c
@@ -151,11 +151,12 @@ Configuration options:
151 * boards in this way is optional, and completely driver-dependent. 151 * boards in this way is optional, and completely driver-dependent.
152 * Some drivers use arrays such as this, other do not. 152 * Some drivers use arrays such as this, other do not.
153 */ 153 */
154typedef struct atao_board_struct { 154struct atao_board {
155 const char *name; 155 const char *name;
156 int n_ao_chans; 156 int n_ao_chans;
157} atao_board; 157};
158static const atao_board atao_boards[] = { 158
159static const struct atao_board atao_boards[] = {
159 { 160 {
160 name: "ai-ao-6", 161 name: "ai-ao-6",
161 n_ao_chans:6, 162 n_ao_chans:6,
@@ -166,7 +167,7 @@ static const atao_board atao_boards[] = {
166 }, 167 },
167}; 168};
168 169
169#define thisboard ((atao_board *)dev->board_ptr) 170#define thisboard ((struct atao_board *)dev->board_ptr)
170 171
171struct atao_private { 172struct atao_private {
172 173
@@ -188,8 +189,8 @@ static struct comedi_driver driver_atao = {
188 attach:atao_attach, 189 attach:atao_attach,
189 detach:atao_detach, 190 detach:atao_detach,
190 board_name:&atao_boards[0].name, 191 board_name:&atao_boards[0].name,
191 offset:sizeof(atao_board), 192 offset:sizeof(struct atao_board),
192 num_names:sizeof(atao_boards) / sizeof(atao_board), 193 num_names:sizeof(atao_boards) / sizeof(struct atao_board),
193}; 194};
194 195
195COMEDI_INITCLEANUP(driver_atao); 196COMEDI_INITCLEANUP(driver_atao);