aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-11-26 18:41:39 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-03 12:20:19 -0500
commitc89d6ea38819b5defb7d24584ed9cf87efe8366a (patch)
tree04ac13416aefe4a42cb1a6af247f59a7d71a2c5b
parente9c76f3f67eb7d1187d8bc7c9165aabc5057103f (diff)
staging: comedi: c6xdigio: remove commented out subdevice code
The code to initialize subdevice[2] is commented out and incomplete. Just remove it. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/comedi/drivers/c6xdigio.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/drivers/staging/comedi/drivers/c6xdigio.c b/drivers/staging/comedi/drivers/c6xdigio.c
index a85b9493071f..7512eaf546a7 100644
--- a/drivers/staging/comedi/drivers/c6xdigio.c
+++ b/drivers/staging/comedi/drivers/c6xdigio.c
@@ -338,26 +338,6 @@ static int c6xdigio_pwmo_insn_write(struct comedi_device *dev,
338 return i; 338 return i;
339} 339}
340 340
341/* static int c6xdigio_ei_init_insn_read(struct comedi_device *dev, */
342/* struct comedi_subdevice *s, */
343/* struct comedi_insn *insn, */
344/* unsigned int *data) */
345/* { */
346/* printk("c6xdigio_ei_init_insn_read %x\n", insn->n); */
347/* return insn->n; */
348/* } */
349
350/* static int c6xdigio_ei_init_insn_write(struct comedi_device *dev, */
351/* struct comedi_subdevice *s, */
352/* struct comedi_insn *insn, */
353/* unsigned int *data) */
354/* { */
355/* int i; */
356/* int chan = CR_CHAN(insn->chanspec); */
357 /* *//* C6X_encResetAll( dev->iobase ); */
358 /* *//* return insn->n; */
359/* } */
360
361static int c6xdigio_ei_insn_read(struct comedi_device *dev, 341static int c6xdigio_ei_insn_read(struct comedi_device *dev,
362 struct comedi_subdevice *s, 342 struct comedi_subdevice *s,
363 struct comedi_insn *insn, unsigned int *data) 343 struct comedi_insn *insn, unsigned int *data)
@@ -432,17 +412,6 @@ static int c6xdigio_attach(struct comedi_device *dev,
432 s->maxdata = 0xffffff; 412 s->maxdata = 0xffffff;
433 s->range_table = &range_unknown; 413 s->range_table = &range_unknown;
434 414
435 /* s = &dev->subdevices[2]; */
436 /* pwm output subdevice */
437 /* s->type = COMEDI_SUBD_COUNTER; // Not sure what to put here */
438 /* s->subdev_flags = SDF_WRITEABLE; */
439 /* s->n_chan = 1; */
440 /* s->trig[0] = c6xdigio_ei_init; */
441 /* s->insn_read = c6xdigio_ei_init_insn_read; */
442 /* s->insn_write = c6xdigio_ei_init_insn_write; */
443 /* s->maxdata = 0xFFFF; // Really just a don't care */
444 /* s->range_table = &range_unknown; // Not sure what to put here */
445
446 /* I will call this init anyway but more than likely the DSP board */ 415 /* I will call this init anyway but more than likely the DSP board */
447 /* will not be connected when device driver is loaded. */ 416 /* will not be connected when device driver is loaded. */
448 board_init(dev); 417 board_init(dev);