Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: comedi: Remove comedi_driver typedef

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Bill Pemberton and committed by
Greg Kroah-Hartman
139dfbdf d163679c

+144 -144
+5 -6
drivers/staging/comedi/comedidev.h
··· 121 121 #define COMEDI_NUM_BOARD_MINORS 0x30 122 122 #define COMEDI_FIRST_SUBDEVICE_MINOR COMEDI_NUM_BOARD_MINORS 123 123 124 - typedef struct comedi_driver_struct comedi_driver; 125 124 typedef struct comedi_lrange_struct comedi_lrange; 126 125 127 126 typedef struct device device_create_result_type; ··· 238 239 unsigned int x); 239 240 }; 240 241 241 - struct comedi_driver_struct { 242 - struct comedi_driver_struct *next; 242 + struct comedi_driver { 243 + struct comedi_driver *next; 243 244 244 245 const char *driver_name; 245 246 struct module *module; ··· 255 256 256 257 struct comedi_device { 257 258 int use_count; 258 - comedi_driver *driver; 259 + struct comedi_driver *driver; 259 260 void *private; 260 261 261 262 device_create_result_type *class_dev; ··· 342 343 343 344 void comedi_device_detach(struct comedi_device *dev); 344 345 int comedi_device_attach(struct comedi_device *dev, comedi_devconfig *it); 345 - int comedi_driver_register(comedi_driver *); 346 - int comedi_driver_unregister(comedi_driver *); 346 + int comedi_driver_register(struct comedi_driver *); 347 + int comedi_driver_unregister(struct comedi_driver *); 347 348 348 349 void init_polling(void); 349 350 void cleanup_polling(void);
+9 -9
drivers/staging/comedi/drivers.c
··· 50 50 static int postconfig(struct comedi_device *dev); 51 51 static int insn_rw_emulate_bits(struct comedi_device *dev, struct comedi_subdevice *s, 52 52 comedi_insn *insn, unsigned int *data); 53 - static void *comedi_recognize(comedi_driver * driv, const char *name); 54 - static void comedi_report_boards(comedi_driver *driv); 53 + static void *comedi_recognize(struct comedi_driver * driv, const char *name); 54 + static void comedi_report_boards(struct comedi_driver *driv); 55 55 static int poll_invalid(struct comedi_device *dev, struct comedi_subdevice *s); 56 56 int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s, 57 57 unsigned long new_size); 58 58 59 - comedi_driver *comedi_drivers; 59 + struct comedi_driver *comedi_drivers; 60 60 61 61 int comedi_modprobe(int minor) 62 62 { ··· 115 115 116 116 int comedi_device_attach(struct comedi_device *dev, comedi_devconfig *it) 117 117 { 118 - comedi_driver *driv; 118 + struct comedi_driver *driv; 119 119 int ret; 120 120 121 121 if (dev->attached) ··· 180 180 return 0; 181 181 } 182 182 183 - int comedi_driver_register(comedi_driver *driver) 183 + int comedi_driver_register(struct comedi_driver *driver) 184 184 { 185 185 driver->next = comedi_drivers; 186 186 comedi_drivers = driver; ··· 188 188 return 0; 189 189 } 190 190 191 - int comedi_driver_unregister(comedi_driver *driver) 191 + int comedi_driver_unregister(struct comedi_driver *driver) 192 192 { 193 - comedi_driver *prev; 193 + struct comedi_driver *prev; 194 194 int i; 195 195 196 196 /* check for devices using this driver */ ··· 298 298 } 299 299 300 300 /* generic recognize function for drivers that register their supported board names */ 301 - void *comedi_recognize(comedi_driver * driv, const char *name) 301 + void *comedi_recognize(struct comedi_driver * driv, const char *name) 302 302 { 303 303 unsigned i; 304 304 const char *const *name_ptr = driv->board_name; ··· 313 313 return NULL; 314 314 } 315 315 316 - void comedi_report_boards(comedi_driver *driv) 316 + void comedi_report_boards(struct comedi_driver *driv) 317 317 { 318 318 unsigned int i; 319 319 const char *const *name_ptr;
+1 -1
drivers/staging/comedi/drivers/8255.c
··· 107 107 108 108 static int dev_8255_attach(struct comedi_device *dev, comedi_devconfig * it); 109 109 static int dev_8255_detach(struct comedi_device *dev); 110 - static comedi_driver driver_8255 = { 110 + static struct comedi_driver driver_8255 = { 111 111 driver_name:"8255", 112 112 module:THIS_MODULE, 113 113 attach:dev_8255_attach,
+1 -1
drivers/staging/comedi/drivers/acl7225b.c
··· 38 38 #define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype)) 39 39 #define this_board ((const boardtype *)dev->board_ptr) 40 40 41 - static comedi_driver driver_acl7225b = { 41 + static struct comedi_driver driver_acl7225b = { 42 42 driver_name:"acl7225b", 43 43 module:THIS_MODULE, 44 44 attach:acl7225b_attach,
+1 -1
drivers/staging/comedi/drivers/addi-data/addi_common.c
··· 2527 2527 2528 2528 #define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype)) 2529 2529 2530 - comedi_driver driver_addi = { 2530 + struct comedi_driver driver_addi = { 2531 2531 driver_name:"addi_common", 2532 2532 module:THIS_MODULE, 2533 2533 attach:i_ADDI_Attach,
+1 -1
drivers/staging/comedi/drivers/adl_pci6208.c
··· 112 112 #define pci6208_board_nbr \ 113 113 (sizeof(pci6208_boards) / sizeof(pci6208_board)) 114 114 115 - static comedi_driver driver_pci6208 = { 115 + static struct comedi_driver driver_pci6208 = { 116 116 driver_name:PCI6208_DRIVER_NAME, 117 117 module:THIS_MODULE, 118 118 attach:pci6208_attach,
+1 -1
drivers/staging/comedi/drivers/adl_pci7296.c
··· 65 65 66 66 static int adl_pci7296_attach(struct comedi_device * dev, comedi_devconfig * it); 67 67 static int adl_pci7296_detach(struct comedi_device * dev); 68 - static comedi_driver driver_adl_pci7296 = { 68 + static struct comedi_driver driver_adl_pci7296 = { 69 69 driver_name:"adl_pci7296", 70 70 module:THIS_MODULE, 71 71 attach:adl_pci7296_attach,
+1 -1
drivers/staging/comedi/drivers/adl_pci7432.c
··· 60 60 61 61 static int adl_pci7432_attach(struct comedi_device * dev, comedi_devconfig * it); 62 62 static int adl_pci7432_detach(struct comedi_device * dev); 63 - static comedi_driver driver_adl_pci7432 = { 63 + static struct comedi_driver driver_adl_pci7432 = { 64 64 driver_name:"adl_pci7432", 65 65 module:THIS_MODULE, 66 66 attach:adl_pci7432_attach,
+1 -1
drivers/staging/comedi/drivers/adl_pci8164.c
··· 72 72 73 73 static int adl_pci8164_attach(struct comedi_device * dev, comedi_devconfig * it); 74 74 static int adl_pci8164_detach(struct comedi_device * dev); 75 - static comedi_driver driver_adl_pci8164 = { 75 + static struct comedi_driver driver_adl_pci8164 = { 76 76 driver_name:"adl_pci8164", 77 77 module:THIS_MODULE, 78 78 attach:adl_pci8164_attach,
+1 -1
drivers/staging/comedi/drivers/adl_pci9111.c
··· 326 326 #define pci9111_board_nbr \ 327 327 (sizeof(pci9111_boards)/sizeof(pci9111_board_struct)) 328 328 329 - static comedi_driver pci9111_driver = { 329 + static struct comedi_driver pci9111_driver = { 330 330 driver_name:PCI9111_DRIVER_NAME, 331 331 module:THIS_MODULE, 332 332 attach:pci9111_attach,
+1 -1
drivers/staging/comedi/drivers/adl_pci9118.c
··· 229 229 230 230 #define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype)) 231 231 232 - static comedi_driver driver_pci9118 = { 232 + static struct comedi_driver driver_pci9118 = { 233 233 driver_name:"adl_pci9118", 234 234 module:THIS_MODULE, 235 235 attach:pci9118_attach,
+2 -2
drivers/staging/comedi/drivers/adq12b.c
··· 157 157 #define devpriv ((adq12b_private *)dev->private) 158 158 159 159 /* 160 - * The comedi_driver structure tells the Comedi core module 160 + * The struct comedi_driver structure tells the Comedi core module 161 161 * which functions to call to configure/deconfigure (attach/detach) 162 162 * the board, and also about the kernel module that contains 163 163 * the device code. 164 164 */ 165 165 static int adq12b_attach(struct comedi_device *dev,comedi_devconfig *it); 166 166 static int adq12b_detach(struct comedi_device *dev); 167 - static comedi_driver driver_adq12b={ 167 + static struct comedi_driver driver_adq12b={ 168 168 driver_name: "adq12b", 169 169 module: THIS_MODULE, 170 170 attach: adq12b_attach,
+1 -1
drivers/staging/comedi/drivers/adv_pci1710.c
··· 256 256 257 257 #define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype)) 258 258 259 - static comedi_driver driver_pci1710 = { 259 + static struct comedi_driver driver_pci1710 = { 260 260 .driver_name = DRV_NAME, 261 261 .module = THIS_MODULE, 262 262 .attach = pci1710_attach,
+2 -2
drivers/staging/comedi/drivers/adv_pci1723.c
··· 138 138 MODULE_DEVICE_TABLE(pci, pci1723_pci_table); 139 139 140 140 /* 141 - * The comedi_driver structure tells the Comedi core module 141 + * The struct comedi_driver structure tells the Comedi core module 142 142 * which functions to call to configure/deconfigure (attach/detach) 143 143 * the board, and also about the kernel module that contains 144 144 * the device code. ··· 148 148 149 149 #define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype)) 150 150 151 - static comedi_driver driver_pci1723 = { 151 + static struct comedi_driver driver_pci1723 = { 152 152 driver_name:"adv_pci1723", 153 153 module:THIS_MODULE, 154 154 attach:pci1723_attach,
+1 -1
drivers/staging/comedi/drivers/adv_pci_dio.c
··· 322 322 323 323 #define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype)) 324 324 325 - static comedi_driver driver_pci_dio = { 325 + static struct comedi_driver driver_pci_dio = { 326 326 driver_name:"adv_pci_dio", 327 327 module:THIS_MODULE, 328 328 attach:pci_dio_attach,
+1 -1
drivers/staging/comedi/drivers/aio_aio12_8.c
··· 213 213 return 0; 214 214 } 215 215 216 - static comedi_driver driver_aio_aio12_8 = { 216 + static struct comedi_driver driver_aio_aio12_8 = { 217 217 driver_name:"aio_aio12_8", 218 218 module:THIS_MODULE, 219 219 attach:aio_aio12_8_attach,
+1 -1
drivers/staging/comedi/drivers/aio_iiro_16.c
··· 71 71 72 72 static int aio_iiro_16_detach(struct comedi_device * dev); 73 73 74 - static comedi_driver driver_aio_iiro_16 = { 74 + static struct comedi_driver driver_aio_iiro_16 = { 75 75 driver_name:"aio_iiro_16", 76 76 module:THIS_MODULE, 77 77 attach:aio_iiro_16_attach,
+2 -2
drivers/staging/comedi/drivers/amplc_dio200.c
··· 468 468 } dio200_subdev_intr; 469 469 470 470 /* 471 - * The comedi_driver structure tells the Comedi core module 471 + * The struct comedi_driver structure tells the Comedi core module 472 472 * which functions to call to configure/deconfigure (attach/detach) 473 473 * the board, and also about the kernel module that contains 474 474 * the device code. 475 475 */ 476 476 static int dio200_attach(struct comedi_device * dev, comedi_devconfig * it); 477 477 static int dio200_detach(struct comedi_device * dev); 478 - static comedi_driver driver_amplc_dio200 = { 478 + static struct comedi_driver driver_amplc_dio200 = { 479 479 driver_name:DIO200_DRIVER_NAME, 480 480 module:THIS_MODULE, 481 481 attach:dio200_attach,
+2 -2
drivers/staging/comedi/drivers/amplc_pc236.c
··· 160 160 #define devpriv ((pc236_private *)dev->private) 161 161 162 162 /* 163 - * The comedi_driver structure tells the Comedi core module 163 + * The struct comedi_driver structure tells the Comedi core module 164 164 * which functions to call to configure/deconfigure (attach/detach) 165 165 * the board, and also about the kernel module that contains 166 166 * the device code. 167 167 */ 168 168 static int pc236_attach(struct comedi_device * dev, comedi_devconfig * it); 169 169 static int pc236_detach(struct comedi_device * dev); 170 - static comedi_driver driver_amplc_pc236 = { 170 + static struct comedi_driver driver_amplc_pc236 = { 171 171 driver_name:PC236_DRIVER_NAME, 172 172 module:THIS_MODULE, 173 173 attach:pc236_attach,
+2 -2
drivers/staging/comedi/drivers/amplc_pc263.c
··· 127 127 #endif /* CONFIG_COMEDI_PCI */ 128 128 129 129 /* 130 - * The comedi_driver structure tells the Comedi core module 130 + * The struct comedi_driver structure tells the Comedi core module 131 131 * which functions to call to configure/deconfigure (attach/detach) 132 132 * the board, and also about the kernel module that contains 133 133 * the device code. 134 134 */ 135 135 static int pc263_attach(struct comedi_device * dev, comedi_devconfig * it); 136 136 static int pc263_detach(struct comedi_device * dev); 137 - static comedi_driver driver_amplc_pc263 = { 137 + static struct comedi_driver driver_amplc_pc263 = { 138 138 driver_name:PC263_DRIVER_NAME, 139 139 module:THIS_MODULE, 140 140 attach:pc263_attach,
+2 -2
drivers/staging/comedi/drivers/amplc_pci224.c
··· 421 421 #define devpriv ((pci224_private *)dev->private) 422 422 423 423 /* 424 - * The comedi_driver structure tells the Comedi core module 424 + * The struct comedi_driver structure tells the Comedi core module 425 425 * which functions to call to configure/deconfigure (attach/detach) 426 426 * the board, and also about the kernel module that contains 427 427 * the device code. 428 428 */ 429 429 static int pci224_attach(struct comedi_device * dev, comedi_devconfig * it); 430 430 static int pci224_detach(struct comedi_device * dev); 431 - static comedi_driver driver_amplc_pci224 = { 431 + static struct comedi_driver driver_amplc_pci224 = { 432 432 driver_name:DRIVER_NAME, 433 433 module:THIS_MODULE, 434 434 attach:pci224_attach,
+2 -2
drivers/staging/comedi/drivers/amplc_pci230.c
··· 596 596 static const unsigned char pci230_ao_bipolar[2] = { 0, 1 }; 597 597 598 598 /* 599 - * The comedi_driver structure tells the Comedi core module 599 + * The struct comedi_driver structure tells the Comedi core module 600 600 * which functions to call to configure/deconfigure (attach/detach) 601 601 * the board, and also about the kernel module that contains 602 602 * the device code. 603 603 */ 604 604 static int pci230_attach(struct comedi_device * dev, comedi_devconfig * it); 605 605 static int pci230_detach(struct comedi_device * dev); 606 - static comedi_driver driver_amplc_pci230 = { 606 + static struct comedi_driver driver_amplc_pci230 = { 607 607 driver_name:"amplc_pci230", 608 608 module:THIS_MODULE, 609 609 attach:pci230_attach,
+1 -1
drivers/staging/comedi/drivers/c6xdigio.c
··· 99 99 100 100 static int c6xdigio_attach(struct comedi_device * dev, comedi_devconfig * it); 101 101 static int c6xdigio_detach(struct comedi_device * dev); 102 - comedi_driver driver_c6xdigio = { 102 + struct comedi_driver driver_c6xdigio = { 103 103 driver_name:"c6xdigio", 104 104 module:THIS_MODULE, 105 105 attach:c6xdigio_attach,
+1 -1
drivers/staging/comedi/drivers/cb_das16_cs.c
··· 91 91 92 92 static int das16cs_attach(struct comedi_device * dev, comedi_devconfig * it); 93 93 static int das16cs_detach(struct comedi_device * dev); 94 - static comedi_driver driver_das16cs = { 94 + static struct comedi_driver driver_das16cs = { 95 95 driver_name:"cb_das16_cs", 96 96 module:THIS_MODULE, 97 97 attach:das16cs_attach,
+2 -2
drivers/staging/comedi/drivers/cb_pcidas.c
··· 435 435 #define devpriv ((cb_pcidas_private *)dev->private) 436 436 437 437 /* 438 - * The comedi_driver structure tells the Comedi core module 438 + * The struct comedi_driver structure tells the Comedi core module 439 439 * which functions to call to configure/deconfigure (attach/detach) 440 440 * the board, and also about the kernel module that contains 441 441 * the device code. 442 442 */ 443 443 static int cb_pcidas_attach(struct comedi_device * dev, comedi_devconfig * it); 444 444 static int cb_pcidas_detach(struct comedi_device * dev); 445 - static comedi_driver driver_cb_pcidas = { 445 + static struct comedi_driver driver_cb_pcidas = { 446 446 driver_name:"cb_pcidas", 447 447 module:THIS_MODULE, 448 448 attach:cb_pcidas_attach,
+1 -1
drivers/staging/comedi/drivers/cb_pcidas64.c
··· 1127 1127 */ 1128 1128 static int attach(struct comedi_device * dev, comedi_devconfig * it); 1129 1129 static int detach(struct comedi_device * dev); 1130 - static comedi_driver driver_cb_pcidas = { 1130 + static struct comedi_driver driver_cb_pcidas = { 1131 1131 driver_name:"cb_pcidas64", 1132 1132 module:THIS_MODULE, 1133 1133 attach:attach,
+2 -2
drivers/staging/comedi/drivers/cb_pcidda.c
··· 249 249 unsigned int range); 250 250 251 251 /* 252 - * The comedi_driver structure tells the Comedi core module 252 + * The struct comedi_driver structure tells the Comedi core module 253 253 * which functions to call to configure/deconfigure (attach/detach) 254 254 * the board, and also about the kernel module that contains 255 255 * the device code. 256 256 */ 257 - static comedi_driver driver_cb_pcidda = { 257 + static struct comedi_driver driver_cb_pcidda = { 258 258 driver_name:"cb_pcidda", 259 259 module:THIS_MODULE, 260 260 attach:cb_pcidda_attach,
+2 -2
drivers/staging/comedi/drivers/cb_pcidio.c
··· 122 122 #define devpriv ((pcidio_private *)dev->private) 123 123 124 124 /* 125 - * The comedi_driver structure tells the Comedi core module 125 + * The struct comedi_driver structure tells the Comedi core module 126 126 * which functions to call to configure/deconfigure (attach/detach) 127 127 * the board, and also about the kernel module that contains 128 128 * the device code. 129 129 */ 130 130 static int pcidio_attach(struct comedi_device * dev, comedi_devconfig * it); 131 131 static int pcidio_detach(struct comedi_device * dev); 132 - static comedi_driver driver_cb_pcidio = { 132 + static struct comedi_driver driver_cb_pcidio = { 133 133 driver_name:"cb_pcidio", 134 134 module:THIS_MODULE, 135 135 attach:pcidio_attach,
+2 -2
drivers/staging/comedi/drivers/cb_pcimdas.c
··· 170 170 #define devpriv ((cb_pcimdas_private *)dev->private) 171 171 172 172 /* 173 - * The comedi_driver structure tells the Comedi core module 173 + * The struct comedi_driver structure tells the Comedi core module 174 174 * which functions to call to configure/deconfigure (attach/detach) 175 175 * the board, and also about the kernel module that contains 176 176 * the device code. 177 177 */ 178 178 static int cb_pcimdas_attach(struct comedi_device * dev, comedi_devconfig * it); 179 179 static int cb_pcimdas_detach(struct comedi_device * dev); 180 - static comedi_driver driver_cb_pcimdas = { 180 + static struct comedi_driver driver_cb_pcimdas = { 181 181 driver_name:"cb_pcimdas", 182 182 module:THIS_MODULE, 183 183 attach:cb_pcimdas_attach,
+2 -2
drivers/staging/comedi/drivers/cb_pcimdda.c
··· 176 176 #define devpriv ((private *)dev->private) 177 177 178 178 /* 179 - * The comedi_driver structure tells the Comedi core module 179 + * The struct comedi_driver structure tells the Comedi core module 180 180 * which functions to call to configure/deconfigure (attach/detach) 181 181 * the board, and also about the kernel module that contains 182 182 * the device code. 183 183 */ 184 184 static int attach(struct comedi_device * dev, comedi_devconfig * it); 185 185 static int detach(struct comedi_device * dev); 186 - static comedi_driver cb_pcimdda_driver = { 186 + static struct comedi_driver cb_pcimdda_driver = { 187 187 driver_name:"cb_pcimdda", 188 188 module:THIS_MODULE, 189 189 attach:attach,
+3 -3
drivers/staging/comedi/drivers/comedi_bond.c
··· 59 59 * Devices: a full list of the boards that attempt to be supported by 60 60 * the driver. Format is "(manufacturer) board name [comedi name]", 61 61 * where comedi_name is the name that is used to configure the board. 62 - * See the comment near board_name: in the comedi_driver structure 62 + * See the comment near board_name: in the struct comedi_driver structure 63 63 * below. If (manufacturer) or [comedi name] is missing, the previous 64 64 * value is used. 65 65 * Author: you ··· 171 171 #define devpriv ((struct Private *)dev->private) 172 172 173 173 /* 174 - * The comedi_driver structure tells the Comedi core module 174 + * The struct comedi_driver structure tells the Comedi core module 175 175 * which functions to call to configure/deconfigure (attach/detach) 176 176 * the board, and also about the kernel module that contains 177 177 * the device code. ··· 185 185 * what can I say? I like to do wasteful memcopies.. :) */ 186 186 static void *Realloc(const void *ptr, size_t len, size_t old_len); 187 187 188 - static comedi_driver driver_bonding = { 188 + static struct comedi_driver driver_bonding = { 189 189 .driver_name = MODULE_NAME, 190 190 .module = THIS_MODULE, 191 191 .attach = bonding_attach,
+1 -1
drivers/staging/comedi/drivers/comedi_parport.c
··· 92 92 93 93 static int parport_attach(struct comedi_device *dev, comedi_devconfig *it); 94 94 static int parport_detach(struct comedi_device *dev); 95 - static comedi_driver driver_parport = { 95 + static struct comedi_driver driver_parport = { 96 96 .driver_name = "comedi_parport", 97 97 .module = THIS_MODULE, 98 98 .attach = parport_attach,
+1 -1
drivers/staging/comedi/drivers/comedi_rt_timer.c
··· 128 128 unsigned int trig_num); 129 129 static int timer_start_cmd(struct comedi_device * dev, struct comedi_subdevice * s); 130 130 131 - static comedi_driver driver_timer = { 131 + static struct comedi_driver driver_timer = { 132 132 module:THIS_MODULE, 133 133 driver_name:"comedi_rt_timer", 134 134 attach:timer_attach,
+1 -1
drivers/staging/comedi/drivers/comedi_test.c
··· 95 95 96 96 static int waveform_attach(struct comedi_device *dev, comedi_devconfig *it); 97 97 static int waveform_detach(struct comedi_device *dev); 98 - static comedi_driver driver_waveform = { 98 + static struct comedi_driver driver_waveform = { 99 99 .driver_name = "comedi_test", 100 100 .module = THIS_MODULE, 101 101 .attach = waveform_attach,
+1 -1
drivers/staging/comedi/drivers/contec_pci_dio.c
··· 77 77 78 78 static int contec_attach(struct comedi_device * dev, comedi_devconfig * it); 79 79 static int contec_detach(struct comedi_device * dev); 80 - static comedi_driver driver_contec = { 80 + static struct comedi_driver driver_contec = { 81 81 driver_name:"contec_pci_dio", 82 82 module:THIS_MODULE, 83 83 attach:contec_attach,
+1 -1
drivers/staging/comedi/drivers/daqboard2000.c
··· 299 299 static int daqboard2000_attach(struct comedi_device * dev, comedi_devconfig * it); 300 300 static int daqboard2000_detach(struct comedi_device * dev); 301 301 302 - static comedi_driver driver_daqboard2000 = { 302 + static struct comedi_driver driver_daqboard2000 = { 303 303 driver_name:"daqboard2000", 304 304 module:THIS_MODULE, 305 305 attach:daqboard2000_attach,
+1 -1
drivers/staging/comedi/drivers/das08.c
··· 829 829 830 830 static int das08_attach(struct comedi_device * dev, comedi_devconfig * it); 831 831 832 - static comedi_driver driver_das08 = { 832 + static struct comedi_driver driver_das08 = { 833 833 driver_name: DRV_NAME, 834 834 module:THIS_MODULE, 835 835 attach:das08_attach,
+1 -1
drivers/staging/comedi/drivers/das08_cs.c
··· 58 58 59 59 static int das08_cs_attach(struct comedi_device * dev, comedi_devconfig * it); 60 60 61 - static comedi_driver driver_das08_cs = { 61 + static struct comedi_driver driver_das08_cs = { 62 62 driver_name:"das08_cs", 63 63 module:THIS_MODULE, 64 64 attach:das08_cs_attach,
+1 -1
drivers/staging/comedi/drivers/das16.c
··· 700 700 701 701 static int das16_attach(struct comedi_device * dev, comedi_devconfig * it); 702 702 static int das16_detach(struct comedi_device * dev); 703 - static comedi_driver driver_das16 = { 703 + static struct comedi_driver driver_das16 = { 704 704 driver_name:"das16", 705 705 module:THIS_MODULE, 706 706 attach:das16_attach,
+1 -1
drivers/staging/comedi/drivers/das16m1.c
··· 168 168 169 169 static int das16m1_attach(struct comedi_device * dev, comedi_devconfig * it); 170 170 static int das16m1_detach(struct comedi_device * dev); 171 - static comedi_driver driver_das16m1 = { 171 + static struct comedi_driver driver_das16m1 = { 172 172 driver_name:"das16m1", 173 173 module:THIS_MODULE, 174 174 attach:das16m1_attach,
+1 -1
drivers/staging/comedi/drivers/das1800.c
··· 504 504 }; 505 505 */ 506 506 507 - static comedi_driver driver_das1800 = { 507 + static struct comedi_driver driver_das1800 = { 508 508 driver_name:"das1800", 509 509 module:THIS_MODULE, 510 510 attach:das1800_attach,
+1 -1
drivers/staging/comedi/drivers/das6402.c
··· 100 100 101 101 static int das6402_attach(struct comedi_device * dev, comedi_devconfig * it); 102 102 static int das6402_detach(struct comedi_device * dev); 103 - static comedi_driver driver_das6402 = { 103 + static struct comedi_driver driver_das6402 = { 104 104 driver_name:"das6402", 105 105 module:THIS_MODULE, 106 106 attach:das6402_attach,
+1 -1
drivers/staging/comedi/drivers/das800.c
··· 246 246 static int das800_detach(struct comedi_device * dev); 247 247 static int das800_cancel(struct comedi_device * dev, struct comedi_subdevice * s); 248 248 249 - static comedi_driver driver_das800 = { 249 + static struct comedi_driver driver_das800 = { 250 250 driver_name:"das800", 251 251 module:THIS_MODULE, 252 252 attach:das800_attach,
+3 -3
drivers/staging/comedi/drivers/dmm32at.c
··· 46 46 * Devices: a full list of the boards that attempt to be supported by 47 47 * the driver. Format is "(manufacturer) board name [comedi name]", 48 48 * where comedi_name is the name that is used to configure the board. 49 - * See the comment near board_name: in the comedi_driver structure 49 + * See the comment near board_name: in the struct comedi_driver structure 50 50 * below. If (manufacturer) or [comedi name] is missing, the previous 51 51 * value is used. 52 52 * Author: you ··· 253 253 #define devpriv ((dmm32at_private *)dev->private) 254 254 255 255 /* 256 - * The comedi_driver structure tells the Comedi core module 256 + * The struct comedi_driver structure tells the Comedi core module 257 257 * which functions to call to configure/deconfigure (attach/detach) 258 258 * the board, and also about the kernel module that contains 259 259 * the device code. 260 260 */ 261 261 static int dmm32at_attach(struct comedi_device * dev, comedi_devconfig * it); 262 262 static int dmm32at_detach(struct comedi_device * dev); 263 - static comedi_driver driver_dmm32at = { 263 + static struct comedi_driver driver_dmm32at = { 264 264 driver_name:"dmm32at", 265 265 module:THIS_MODULE, 266 266 attach:dmm32at_attach,
+1 -1
drivers/staging/comedi/drivers/dt2801.c
··· 90 90 91 91 static int dt2801_attach(struct comedi_device * dev, comedi_devconfig * it); 92 92 static int dt2801_detach(struct comedi_device * dev); 93 - static comedi_driver driver_dt2801 = { 93 + static struct comedi_driver driver_dt2801 = { 94 94 driver_name:"dt2801", 95 95 module:THIS_MODULE, 96 96 attach:dt2801_attach,
+1 -1
drivers/staging/comedi/drivers/dt2811.c
··· 214 214 215 215 static int dt2811_attach(struct comedi_device * dev, comedi_devconfig * it); 216 216 static int dt2811_detach(struct comedi_device * dev); 217 - static comedi_driver driver_dt2811 = { 217 + static struct comedi_driver driver_dt2811 = { 218 218 driver_name:"dt2811", 219 219 module:THIS_MODULE, 220 220 attach:dt2811_attach,
+1 -1
drivers/staging/comedi/drivers/dt2814.c
··· 61 61 62 62 static int dt2814_attach(struct comedi_device * dev, comedi_devconfig * it); 63 63 static int dt2814_detach(struct comedi_device * dev); 64 - static comedi_driver driver_dt2814 = { 64 + static struct comedi_driver driver_dt2814 = { 65 65 driver_name:"dt2814", 66 66 module:THIS_MODULE, 67 67 attach:dt2814_attach,
+1 -1
drivers/staging/comedi/drivers/dt2815.c
··· 77 77 78 78 static int dt2815_attach(struct comedi_device * dev, comedi_devconfig * it); 79 79 static int dt2815_detach(struct comedi_device * dev); 80 - static comedi_driver driver_dt2815 = { 80 + static struct comedi_driver driver_dt2815 = { 81 81 driver_name:"dt2815", 82 82 module:THIS_MODULE, 83 83 attach:dt2815_attach,
+1 -1
drivers/staging/comedi/drivers/dt2817.c
··· 49 49 50 50 static int dt2817_attach(struct comedi_device * dev, comedi_devconfig * it); 51 51 static int dt2817_detach(struct comedi_device * dev); 52 - static comedi_driver driver_dt2817 = { 52 + static struct comedi_driver driver_dt2817 = { 53 53 driver_name:"dt2817", 54 54 module:THIS_MODULE, 55 55 attach:dt2817_attach,
+1 -1
drivers/staging/comedi/drivers/dt282x.c
··· 396 396 397 397 static int dt282x_attach(struct comedi_device * dev, comedi_devconfig * it); 398 398 static int dt282x_detach(struct comedi_device * dev); 399 - static comedi_driver driver_dt282x = { 399 + static struct comedi_driver driver_dt282x = { 400 400 driver_name:"dt282x", 401 401 module:THIS_MODULE, 402 402 attach:dt282x_attach,
+1 -1
drivers/staging/comedi/drivers/dt3000.c
··· 273 273 274 274 static int dt3000_attach(struct comedi_device * dev, comedi_devconfig * it); 275 275 static int dt3000_detach(struct comedi_device * dev); 276 - static comedi_driver driver_dt3000 = { 276 + static struct comedi_driver driver_dt3000 = { 277 277 driver_name:"dt3000", 278 278 module:THIS_MODULE, 279 279 attach:dt3000_attach,
+1 -1
drivers/staging/comedi/drivers/dt9812.c
··· 1108 1108 return 0; 1109 1109 } 1110 1110 1111 - static comedi_driver dt9812_comedi_driver = { 1111 + static struct comedi_driver dt9812_comedi_driver = { 1112 1112 .module = THIS_MODULE, 1113 1113 .driver_name = "dt9812", 1114 1114 .attach = dt9812_attach,
+1 -1
drivers/staging/comedi/drivers/fl512.c
··· 43 43 static int fl512_attach(struct comedi_device * dev, comedi_devconfig * it); 44 44 static int fl512_detach(struct comedi_device * dev); 45 45 46 - static comedi_driver driver_fl512 = { 46 + static struct comedi_driver driver_fl512 = { 47 47 driver_name:"fl512", 48 48 module:THIS_MODULE, 49 49 attach:fl512_attach,
+1 -1
drivers/staging/comedi/drivers/gsc_hpdi.c
··· 327 327 return dev->private; 328 328 } 329 329 330 - static comedi_driver driver_hpdi = { 330 + static struct comedi_driver driver_hpdi = { 331 331 driver_name:"gsc_hpdi", 332 332 module:THIS_MODULE, 333 333 attach:hpdi_attach,
+1 -1
drivers/staging/comedi/drivers/icp_multi.c
··· 173 173 174 174 #define n_boardtypes (sizeof(boardtypes)/sizeof(struct boardtype)) 175 175 176 - static comedi_driver driver_icp_multi = { 176 + static struct comedi_driver driver_icp_multi = { 177 177 driver_name:"icp_multi", 178 178 module : THIS_MODULE, 179 179 attach : icp_multi_attach,
+1 -1
drivers/staging/comedi/drivers/ii_pci20kc.c
··· 159 159 static int pci20xxx_attach(struct comedi_device * dev, comedi_devconfig * it); 160 160 static int pci20xxx_detach(struct comedi_device * dev); 161 161 162 - static comedi_driver driver_pci20xxx = { 162 + static struct comedi_driver driver_pci20xxx = { 163 163 driver_name:"ii_pci20kc", 164 164 module:THIS_MODULE, 165 165 attach:pci20xxx_attach,
+1 -1
drivers/staging/comedi/drivers/jr3_pci.c
··· 106 106 static int jr3_pci_attach(struct comedi_device * dev, comedi_devconfig * it); 107 107 static int jr3_pci_detach(struct comedi_device * dev); 108 108 109 - static comedi_driver driver_jr3_pci = { 109 + static struct comedi_driver driver_jr3_pci = { 110 110 driver_name:"jr3_pci", 111 111 module:THIS_MODULE, 112 112 attach:jr3_pci_attach,
+1 -1
drivers/staging/comedi/drivers/ke_counter.c
··· 86 86 87 87 #define devpriv ((cnt_device_private *)dev->private) 88 88 89 - static comedi_driver cnt_driver = { 89 + static struct comedi_driver cnt_driver = { 90 90 driver_name:CNT_DRIVER_NAME, 91 91 module:THIS_MODULE, 92 92 attach:cnt_attach,
+1 -1
drivers/staging/comedi/drivers/me4000.c
··· 120 120 ---------------------------------------------------------------------------*/ 121 121 static int me4000_attach(struct comedi_device *dev, comedi_devconfig *it); 122 122 static int me4000_detach(struct comedi_device *dev); 123 - static comedi_driver driver_me4000 = { 123 + static struct comedi_driver driver_me4000 = { 124 124 driver_name:"me4000", 125 125 module : THIS_MODULE, 126 126 attach : me4000_attach,
+2 -1
drivers/staging/comedi/drivers/me_daq.c
··· 246 246 247 247 #define me_board_nbr (sizeof(me_boards)/sizeof(struct me_board)) 248 248 249 - static comedi_driver me_driver = { 249 + 250 + static struct comedi_driver me_driver = { 250 251 .driver_name = ME_DRIVER_NAME, 251 252 .module = THIS_MODULE, 252 253 .attach = me_attach,
+1 -1
drivers/staging/comedi/drivers/mpc624.c
··· 147 147 static int mpc624_attach(struct comedi_device * dev, comedi_devconfig * it); 148 148 static int mpc624_detach(struct comedi_device * dev); 149 149 //---------------------------------------------------------------------------- 150 - static comedi_driver driver_mpc624 = { 150 + static struct comedi_driver driver_mpc624 = { 151 151 driver_name:"mpc624", 152 152 module:THIS_MODULE, 153 153 attach:mpc624_attach,
+1 -1
drivers/staging/comedi/drivers/mpc8260cpm.c
··· 46 46 47 47 static int mpc8260cpm_attach(struct comedi_device * dev, comedi_devconfig * it); 48 48 static int mpc8260cpm_detach(struct comedi_device * dev); 49 - static comedi_driver driver_mpc8260cpm = { 49 + static struct comedi_driver driver_mpc8260cpm = { 50 50 driver_name:"mpc8260cpm", 51 51 module:THIS_MODULE, 52 52 attach:mpc8260cpm_attach,
+1 -1
drivers/staging/comedi/drivers/multiq3.c
··· 84 84 85 85 static int multiq3_attach(struct comedi_device * dev, comedi_devconfig * it); 86 86 static int multiq3_detach(struct comedi_device * dev); 87 - static comedi_driver driver_multiq3 = { 87 + static struct comedi_driver driver_multiq3 = { 88 88 driver_name:"multiq3", 89 89 module:THIS_MODULE, 90 90 attach:multiq3_attach,
+1 -1
drivers/staging/comedi/drivers/ni_6527.c
··· 77 77 78 78 static int ni6527_attach(struct comedi_device * dev, comedi_devconfig * it); 79 79 static int ni6527_detach(struct comedi_device * dev); 80 - static comedi_driver driver_ni6527 = { 80 + static struct comedi_driver driver_ni6527 = { 81 81 driver_name:"ni6527", 82 82 module:THIS_MODULE, 83 83 attach:ni6527_attach,
+1 -1
drivers/staging/comedi/drivers/ni_65xx.c
··· 104 104 105 105 static int ni_65xx_attach(struct comedi_device * dev, comedi_devconfig * it); 106 106 static int ni_65xx_detach(struct comedi_device * dev); 107 - static comedi_driver driver_ni_65xx = { 107 + static struct comedi_driver driver_ni_65xx = { 108 108 driver_name:"ni_65xx", 109 109 module:THIS_MODULE, 110 110 attach:ni_65xx_attach,
+1 -1
drivers/staging/comedi/drivers/ni_660x.c
··· 450 450 static void ni_660x_select_pfi_output(struct comedi_device * dev, unsigned pfi_channel, 451 451 unsigned output_select); 452 452 453 - static comedi_driver driver_ni_660x = { 453 + static struct comedi_driver driver_ni_660x = { 454 454 driver_name:"ni_660x", 455 455 module:THIS_MODULE, 456 456 attach:ni_660x_attach,
+1 -1
drivers/staging/comedi/drivers/ni_670x.c
··· 111 111 static int ni_670x_attach(struct comedi_device * dev, comedi_devconfig * it); 112 112 static int ni_670x_detach(struct comedi_device * dev); 113 113 114 - static comedi_driver driver_ni_670x = { 114 + static struct comedi_driver driver_ni_670x = { 115 115 driver_name:"ni_670x", 116 116 module:THIS_MODULE, 117 117 attach:ni_670x_attach,
+1 -1
drivers/staging/comedi/drivers/ni_at_a2150.c
··· 171 171 static int a2150_detach(struct comedi_device * dev); 172 172 static int a2150_cancel(struct comedi_device * dev, struct comedi_subdevice * s); 173 173 174 - static comedi_driver driver_a2150 = { 174 + static struct comedi_driver driver_a2150 = { 175 175 driver_name:"ni_at_a2150", 176 176 module:THIS_MODULE, 177 177 attach:a2150_attach,
+1 -1
drivers/staging/comedi/drivers/ni_at_ao.c
··· 180 180 181 181 static int atao_attach(struct comedi_device * dev, comedi_devconfig * it); 182 182 static int atao_detach(struct comedi_device * dev); 183 - static comedi_driver driver_atao = { 183 + static struct comedi_driver driver_atao = { 184 184 driver_name:"ni_at_ao", 185 185 module:THIS_MODULE, 186 186 attach:atao_attach,
+1 -1
drivers/staging/comedi/drivers/ni_atmio.c
··· 340 340 341 341 static int ni_atmio_attach(struct comedi_device * dev, comedi_devconfig * it); 342 342 static int ni_atmio_detach(struct comedi_device * dev); 343 - static comedi_driver driver_atmio = { 343 + static struct comedi_driver driver_atmio = { 344 344 driver_name:"ni_atmio", 345 345 module:THIS_MODULE, 346 346 attach:ni_atmio_attach,
+1 -1
drivers/staging/comedi/drivers/ni_atmio16d.c
··· 134 134 static void reset_atmio16d(struct comedi_device * dev); 135 135 136 136 /* main driver struct */ 137 - static comedi_driver driver_atmio16d = { 137 + static struct comedi_driver driver_atmio16d = { 138 138 driver_name:"atmio16", 139 139 module:THIS_MODULE, 140 140 attach:atmio16d_attach,
+1 -1
drivers/staging/comedi/drivers/ni_daq_700.c
··· 97 97 98 98 #define devpriv ((dio700_private *)dev->private) 99 99 100 - static comedi_driver driver_dio700 = { 100 + static struct comedi_driver driver_dio700 = { 101 101 driver_name:"ni_daq_700", 102 102 module:THIS_MODULE, 103 103 attach:dio700_attach,
+1 -1
drivers/staging/comedi/drivers/ni_daq_dio24.c
··· 97 97 98 98 #define devpriv ((dio24_private *)dev->private) 99 99 100 - static comedi_driver driver_dio24 = { 100 + static struct comedi_driver driver_dio24 = { 101 101 driver_name:"ni_daq_dio24", 102 102 module:THIS_MODULE, 103 103 attach:dio24_attach,
+1 -1
drivers/staging/comedi/drivers/ni_labpc.c
··· 429 429 430 430 #define devpriv ((labpc_private *)dev->private) 431 431 432 - static comedi_driver driver_labpc = { 432 + static struct comedi_driver driver_labpc = { 433 433 .driver_name = DRV_NAME, 434 434 .module = THIS_MODULE, 435 435 .attach = labpc_attach,
+1 -1
drivers/staging/comedi/drivers/ni_labpc_cs.c
··· 116 116 */ 117 117 #define thisboard ((const labpc_board *)dev->board_ptr) 118 118 119 - static comedi_driver driver_labpc_cs = { 119 + static struct comedi_driver driver_labpc_cs = { 120 120 .driver_name = "ni_labpc_cs", 121 121 .module = THIS_MODULE, 122 122 .attach = &labpc_attach,
+1 -1
drivers/staging/comedi/drivers/ni_mio_cs.c
··· 227 227 228 228 static int mio_cs_attach(struct comedi_device * dev, comedi_devconfig * it); 229 229 static int mio_cs_detach(struct comedi_device * dev); 230 - static comedi_driver driver_ni_mio_cs = { 230 + static struct comedi_driver driver_ni_mio_cs = { 231 231 driver_name:"ni_mio_cs", 232 232 module:THIS_MODULE, 233 233 attach:mio_cs_attach,
+1 -1
drivers/staging/comedi/drivers/ni_pcidio.c
··· 291 291 static int nidio_detach(struct comedi_device * dev); 292 292 static int ni_pcidio_cancel(struct comedi_device * dev, struct comedi_subdevice * s); 293 293 294 - static comedi_driver driver_pcidio = { 294 + static struct comedi_driver driver_pcidio = { 295 295 driver_name:"ni_pcidio", 296 296 module:THIS_MODULE, 297 297 attach:nidio_attach,
+1 -1
drivers/staging/comedi/drivers/ni_pcimio.c
··· 1209 1209 1210 1210 static int pcimio_attach(struct comedi_device * dev, comedi_devconfig * it); 1211 1211 static int pcimio_detach(struct comedi_device * dev); 1212 - static comedi_driver driver_pcimio = { 1212 + static struct comedi_driver driver_pcimio = { 1213 1213 driver_name: DRV_NAME, 1214 1214 module:THIS_MODULE, 1215 1215 attach:pcimio_attach,
+1 -1
drivers/staging/comedi/drivers/pcl711.c
··· 156 156 157 157 static int pcl711_attach(struct comedi_device * dev, comedi_devconfig * it); 158 158 static int pcl711_detach(struct comedi_device * dev); 159 - static comedi_driver driver_pcl711 = { 159 + static struct comedi_driver driver_pcl711 = { 160 160 driver_name:"pcl711", 161 161 module:THIS_MODULE, 162 162 attach:pcl711_attach,
+1 -1
drivers/staging/comedi/drivers/pcl724.c
··· 81 81 #define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype)) 82 82 #define this_board ((const boardtype *)dev->board_ptr) 83 83 84 - static comedi_driver driver_pcl724 = { 84 + static struct comedi_driver driver_pcl724 = { 85 85 driver_name:"pcl724", 86 86 module:THIS_MODULE, 87 87 attach:pcl724_attach,
+1 -1
drivers/staging/comedi/drivers/pcl725.c
··· 22 22 23 23 static int pcl725_attach(struct comedi_device * dev, comedi_devconfig * it); 24 24 static int pcl725_detach(struct comedi_device * dev); 25 - static comedi_driver driver_pcl725 = { 25 + static struct comedi_driver driver_pcl725 = { 26 26 driver_name:"pcl725", 27 27 module:THIS_MODULE, 28 28 attach:pcl725_attach,
+1 -1
drivers/staging/comedi/drivers/pcl726.c
··· 149 149 #define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype)) 150 150 #define this_board ((const boardtype *)dev->board_ptr) 151 151 152 - static comedi_driver driver_pcl726 = { 152 + static struct comedi_driver driver_pcl726 = { 153 153 driver_name:"pcl726", 154 154 module:THIS_MODULE, 155 155 attach:pcl726_attach,
+1 -1
drivers/staging/comedi/drivers/pcl730.c
··· 43 43 #define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype)) 44 44 #define this_board ((const boardtype *)dev->board_ptr) 45 45 46 - static comedi_driver driver_pcl730 = { 46 + static struct comedi_driver driver_pcl730 = { 47 47 driver_name:"pcl730", 48 48 module:THIS_MODULE, 49 49 attach:pcl730_attach,
+1 -1
drivers/staging/comedi/drivers/pcl812.c
··· 374 374 #define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype)) 375 375 #define this_board ((const boardtype *)dev->board_ptr) 376 376 377 - static comedi_driver driver_pcl812 = { 377 + static struct comedi_driver driver_pcl812 = { 378 378 driver_name:"pcl812", 379 379 module:THIS_MODULE, 380 380 attach:pcl812_attach,
+1 -1
drivers/staging/comedi/drivers/pcl816.c
··· 154 154 static int RTC_timer_lock = 0; /* RTC int lock */ 155 155 #endif 156 156 157 - static comedi_driver driver_pcl816 = { 157 + static struct comedi_driver driver_pcl816 = { 158 158 driver_name:"pcl816", 159 159 module:THIS_MODULE, 160 160 attach:pcl816_attach,
+1 -1
drivers/staging/comedi/drivers/pcl818.c
··· 299 299 300 300 #define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype)) 301 301 302 - static comedi_driver driver_pcl818 = { 302 + static struct comedi_driver driver_pcl818 = { 303 303 driver_name:"pcl818", 304 304 module:THIS_MODULE, 305 305 attach:pcl818_attach,
+1 -1
drivers/staging/comedi/drivers/pcm3724.c
··· 85 85 #define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype)) 86 86 #define this_board ((const boardtype *)dev->board_ptr) 87 87 88 - static comedi_driver driver_pcm3724 = { 88 + static struct comedi_driver driver_pcm3724 = { 89 89 driver_name:"pcm3724", 90 90 module:THIS_MODULE, 91 91 attach:pcm3724_attach,
+1 -1
drivers/staging/comedi/drivers/pcm3730.c
··· 30 30 31 31 static int pcm3730_attach(struct comedi_device * dev, comedi_devconfig * it); 32 32 static int pcm3730_detach(struct comedi_device * dev); 33 - static comedi_driver driver_pcm3730 = { 33 + static struct comedi_driver driver_pcm3730 = { 34 34 driver_name:"pcm3730", 35 35 module:THIS_MODULE, 36 36 attach:pcm3730_attach,
+1 -1
drivers/staging/comedi/drivers/pcmad.c
··· 78 78 79 79 static int pcmad_attach(struct comedi_device * dev, comedi_devconfig * it); 80 80 static int pcmad_detach(struct comedi_device * dev); 81 - static comedi_driver driver_pcmad = { 81 + static struct comedi_driver driver_pcmad = { 82 82 driver_name:"pcmad", 83 83 module:THIS_MODULE, 84 84 attach:pcmad_attach,
+2 -2
drivers/staging/comedi/drivers/pcmda12.c
··· 100 100 #define devpriv ((pcmda12_private *)(dev->private)) 101 101 102 102 /* 103 - * The comedi_driver structure tells the Comedi core module 103 + * The struct comedi_driver structure tells the Comedi core module 104 104 * which functions to call to configure/deconfigure (attach/detach) 105 105 * the board, and also about the kernel module that contains 106 106 * the device code. ··· 110 110 111 111 static void zero_chans(struct comedi_device * dev); 112 112 113 - static comedi_driver driver = { 113 + static struct comedi_driver driver = { 114 114 driver_name:"pcmda12", 115 115 module:THIS_MODULE, 116 116 attach:pcmda12_attach,
+2 -2
drivers/staging/comedi/drivers/pcmmio.c
··· 259 259 #define devpriv ((pcmmio_private *)dev->private) 260 260 #define subpriv ((pcmmio_subdev_private *)s->private) 261 261 /* 262 - * The comedi_driver structure tells the Comedi core module 262 + * The struct comedi_driver structure tells the Comedi core module 263 263 * which functions to call to configure/deconfigure (attach/detach) 264 264 * the board, and also about the kernel module that contains 265 265 * the device code. ··· 267 267 static int pcmmio_attach(struct comedi_device * dev, comedi_devconfig * it); 268 268 static int pcmmio_detach(struct comedi_device * dev); 269 269 270 - static comedi_driver driver = { 270 + static struct comedi_driver driver = { 271 271 driver_name:"pcmmio", 272 272 module:THIS_MODULE, 273 273 attach:pcmmio_attach,
+2 -2
drivers/staging/comedi/drivers/pcmuio.c
··· 217 217 #define devpriv ((pcmuio_private *)dev->private) 218 218 #define subpriv ((pcmuio_subdev_private *)s->private) 219 219 /* 220 - * The comedi_driver structure tells the Comedi core module 220 + * The struct comedi_driver structure tells the Comedi core module 221 221 * which functions to call to configure/deconfigure (attach/detach) 222 222 * the board, and also about the kernel module that contains 223 223 * the device code. ··· 225 225 static int pcmuio_attach(struct comedi_device * dev, comedi_devconfig * it); 226 226 static int pcmuio_detach(struct comedi_device * dev); 227 227 228 - static comedi_driver driver = { 228 + static struct comedi_driver driver = { 229 229 driver_name:"pcmuio", 230 230 module:THIS_MODULE, 231 231 attach:pcmuio_attach,
+1 -1
drivers/staging/comedi/drivers/poc.c
··· 103 103 #define n_boards (sizeof(boards)/sizeof(boards[0])) 104 104 #define this_board ((const struct boarddef_struct *)dev->board_ptr) 105 105 106 - static comedi_driver driver_poc = { 106 + static struct comedi_driver driver_poc = { 107 107 driver_name:"poc", 108 108 module:THIS_MODULE, 109 109 attach:poc_attach,
+1 -1
drivers/staging/comedi/drivers/quatech_daqp_cs.c
··· 199 199 200 200 static int daqp_attach(struct comedi_device * dev, comedi_devconfig * it); 201 201 static int daqp_detach(struct comedi_device * dev); 202 - static comedi_driver driver_daqp = { 202 + static struct comedi_driver driver_daqp = { 203 203 driver_name:"quatech_daqp_cs", 204 204 module:THIS_MODULE, 205 205 attach:daqp_attach,
+2 -2
drivers/staging/comedi/drivers/rtd520.c
··· 675 675 readb (devpriv->lcfg+LCFG_DMACSR1) 676 676 677 677 /* 678 - * The comedi_driver structure tells the Comedi core module 678 + * The struct comedi_driver structure tells the Comedi core module 679 679 * which functions to call to configure/deconfigure (attac/detach) 680 680 * the board, and also about the kernel module that contains 681 681 * the device code. ··· 683 683 static int rtd_attach(struct comedi_device *dev, comedi_devconfig *it); 684 684 static int rtd_detach(struct comedi_device *dev); 685 685 686 - static comedi_driver rtd520Driver = { 686 + static struct comedi_driver rtd520Driver = { 687 687 driver_name: DRV_NAME, 688 688 module : THIS_MODULE, 689 689 attach : rtd_attach,
+1 -1
drivers/staging/comedi/drivers/rti800.c
··· 131 131 132 132 static int rti800_attach(struct comedi_device * dev, comedi_devconfig * it); 133 133 static int rti800_detach(struct comedi_device * dev); 134 - static comedi_driver driver_rti800 = { 134 + static struct comedi_driver driver_rti800 = { 135 135 driver_name:"rti800", 136 136 module:THIS_MODULE, 137 137 attach:rti800_attach,
+1 -1
drivers/staging/comedi/drivers/rti802.c
··· 49 49 50 50 static int rti802_attach(struct comedi_device * dev, comedi_devconfig * it); 51 51 static int rti802_detach(struct comedi_device * dev); 52 - static comedi_driver driver_rti802 = { 52 + static struct comedi_driver driver_rti802 = { 53 53 driver_name:"rti802", 54 54 module:THIS_MODULE, 55 55 attach:rti802_attach,
+2 -2
drivers/staging/comedi/drivers/s526.c
··· 210 210 #define devpriv ((s526_private *)dev->private) 211 211 212 212 /* 213 - * The comedi_driver structure tells the Comedi core module 213 + * The struct comedi_driver structure tells the Comedi core module 214 214 * which functions to call to configure/deconfigure (attach/detach) 215 215 * the board, and also about the kernel module that contains 216 216 * the device code. 217 217 */ 218 218 static int s526_attach(struct comedi_device * dev, comedi_devconfig * it); 219 219 static int s526_detach(struct comedi_device * dev); 220 - static comedi_driver driver_s526 = { 220 + static struct comedi_driver driver_s526 = { 221 221 driver_name:"s526", 222 222 module:THIS_MODULE, 223 223 attach:s526_attach,
+1 -1
drivers/staging/comedi/drivers/s626.c
··· 121 121 static int s626_attach(struct comedi_device *dev, comedi_devconfig *it); 122 122 static int s626_detach(struct comedi_device *dev); 123 123 124 - static comedi_driver driver_s626 = { 124 + static struct comedi_driver driver_s626 = { 125 125 driver_name:"s626", 126 126 module : THIS_MODULE, 127 127 attach : s626_attach,
+1 -1
drivers/staging/comedi/drivers/serial2002.c
··· 87 87 88 88 static int serial2002_attach(struct comedi_device * dev, comedi_devconfig * it); 89 89 static int serial2002_detach(struct comedi_device * dev); 90 - comedi_driver driver_serial2002 = { 90 + struct comedi_driver driver_serial2002 = { 91 91 driver_name:"serial2002", 92 92 module:THIS_MODULE, 93 93 attach:serial2002_attach,
+3 -3
drivers/staging/comedi/drivers/skel.c
··· 44 44 * Devices: a full list of the boards that attempt to be supported by 45 45 * the driver. Format is "(manufacturer) board name [comedi name]", 46 46 * where comedi_name is the name that is used to configure the board. 47 - * See the comment near board_name: in the comedi_driver structure 47 + * See the comment near board_name: in the struct comedi_driver structure 48 48 * below. If (manufacturer) or [comedi name] is missing, the previous 49 49 * value is used. 50 50 * Author: you ··· 146 146 #define devpriv ((skel_private *)dev->private) 147 147 148 148 /* 149 - * The comedi_driver structure tells the Comedi core module 149 + * The struct comedi_driver structure tells the Comedi core module 150 150 * which functions to call to configure/deconfigure (attach/detach) 151 151 * the board, and also about the kernel module that contains 152 152 * the device code. 153 153 */ 154 154 static int skel_attach(struct comedi_device * dev, comedi_devconfig * it); 155 155 static int skel_detach(struct comedi_device * dev); 156 - static comedi_driver driver_skel = { 156 + static struct comedi_driver driver_skel = { 157 157 driver_name:"dummy", 158 158 module:THIS_MODULE, 159 159 attach:skel_attach,
+2 -2
drivers/staging/comedi/drivers/ssv_dnp.c
··· 80 80 #define devpriv ((dnp_private *)dev->private) 81 81 82 82 /* ------------------------------------------------------------------------- */ 83 - /* The comedi_driver structure tells the Comedi core module which functions */ 83 + /* The struct comedi_driver structure tells the Comedi core module which functions */ 84 84 /* to call to configure/deconfigure (attach/detach) the board, and also */ 85 85 /* about the kernel module that contains the device code. */ 86 86 /* */ ··· 90 90 static int dnp_attach(struct comedi_device * dev, comedi_devconfig * it); 91 91 static int dnp_detach(struct comedi_device * dev); 92 92 93 - static comedi_driver driver_dnp = { 93 + static struct comedi_driver driver_dnp = { 94 94 driver_name:"ssv_dnp", 95 95 module:THIS_MODULE, 96 96 attach:dnp_attach,
+1 -1
drivers/staging/comedi/drivers/unioxx5.c
··· 102 102 static int __unioxx5_define_chan_offset(int chan_num); 103 103 static void __unioxx5_analog_config(unioxx5_subd_priv * usp, int channel); 104 104 105 - static comedi_driver unioxx5_driver = { 105 + static struct comedi_driver unioxx5_driver = { 106 106 driver_name:DRIVER_NAME, 107 107 module:THIS_MODULE, 108 108 attach:unioxx5_attach,
+1 -1
drivers/staging/comedi/drivers/usbdux.c
··· 2903 2903 } 2904 2904 2905 2905 /* main driver struct */ 2906 - static comedi_driver driver_usbdux = { 2906 + static struct comedi_driver driver_usbdux = { 2907 2907 .driver_name = "usbdux", 2908 2908 .module = THIS_MODULE, 2909 2909 .attach = usbdux_attach,
+1 -1
drivers/staging/comedi/drivers/usbduxfast.c
··· 1856 1856 /* 1857 1857 * main driver struct 1858 1858 */ 1859 - static comedi_driver driver_usbduxfast = { 1859 + static struct comedi_driver driver_usbduxfast = { 1860 1860 .driver_name = "usbduxfast", 1861 1861 .module = THIS_MODULE, 1862 1862 .attach = usbduxfast_attach,
+2 -2
drivers/staging/comedi/proc.c
··· 36 36 int comedi_read_procmem(char *buf, char **start, off_t offset, int len, 37 37 int *eof, void *data); 38 38 39 - extern comedi_driver *comedi_drivers; 39 + extern struct comedi_driver *comedi_drivers; 40 40 41 41 int comedi_read_procmem(char *buf, char **start, off_t offset, int len, 42 42 int *eof, void *data) ··· 44 44 int i; 45 45 int devices_q = 0; 46 46 int l = 0; 47 - comedi_driver *driv; 47 + struct comedi_driver *driv; 48 48 49 49 l += sprintf(buf + l, 50 50 "comedi version " COMEDI_RELEASE "\n"