diff options
-rw-r--r-- | drivers/staging/comedi/drivers/addi_apci_2032.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/staging/comedi/drivers/addi_apci_2032.c b/drivers/staging/comedi/drivers/addi_apci_2032.c index 4cac92cff875..fded4806548f 100644 --- a/drivers/staging/comedi/drivers/addi_apci_2032.c +++ b/drivers/staging/comedi/drivers/addi_apci_2032.c | |||
@@ -266,25 +266,25 @@ static int apci2032_auto_attach(struct comedi_device *dev, | |||
266 | 266 | ||
267 | /* Initialize the digital output subdevice */ | 267 | /* Initialize the digital output subdevice */ |
268 | s = &dev->subdevices[0]; | 268 | s = &dev->subdevices[0]; |
269 | s->type = COMEDI_SUBD_DO; | 269 | s->type = COMEDI_SUBD_DO; |
270 | s->subdev_flags = SDF_WRITEABLE; | 270 | s->subdev_flags = SDF_WRITEABLE; |
271 | s->n_chan = 32; | 271 | s->n_chan = 32; |
272 | s->maxdata = 1; | 272 | s->maxdata = 1; |
273 | s->range_table = &range_digital; | 273 | s->range_table = &range_digital; |
274 | s->insn_config = i_APCI2032_ConfigDigitalOutput; | 274 | s->insn_config = i_APCI2032_ConfigDigitalOutput; |
275 | s->insn_bits = apci2032_do_insn_bits; | 275 | s->insn_bits = apci2032_do_insn_bits; |
276 | s->insn_read = i_APCI2032_ReadInterruptStatus; | 276 | s->insn_read = i_APCI2032_ReadInterruptStatus; |
277 | 277 | ||
278 | /* Initialize the watchdog subdevice */ | 278 | /* Initialize the watchdog subdevice */ |
279 | s = &dev->subdevices[1]; | 279 | s = &dev->subdevices[1]; |
280 | s->type = COMEDI_SUBD_TIMER; | 280 | s->type = COMEDI_SUBD_TIMER; |
281 | s->subdev_flags = SDF_WRITEABLE; | 281 | s->subdev_flags = SDF_WRITEABLE; |
282 | s->n_chan = 1; | 282 | s->n_chan = 1; |
283 | s->maxdata = 0xff; | 283 | s->maxdata = 0xff; |
284 | s->range_table = &range_digital; | 284 | s->range_table = &range_digital; |
285 | s->insn_write = apci2032_wdog_insn_write; | 285 | s->insn_write = apci2032_wdog_insn_write; |
286 | s->insn_read = apci2032_wdog_insn_read; | 286 | s->insn_read = apci2032_wdog_insn_read; |
287 | s->insn_config = apci2032_wdog_insn_config; | 287 | s->insn_config = apci2032_wdog_insn_config; |
288 | 288 | ||
289 | apci2032_reset(dev); | 289 | apci2032_reset(dev); |
290 | return 0; | 290 | return 0; |