staging: comedi: das1800: tidy up digital output subdevice init
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 8 Apr 2016 19:41:30 +0000 (12:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Apr 2016 05:16:10 +0000 (22:16 -0700)
For aesthetics, add some whitespace to the subdevice init and rename
the (*insn_bits) function.

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>
drivers/staging/comedi/drivers/das1800.c

index 24b33a450c5fe0228f386e1a0e49155e03b1b63a..e7787ae3fb27e802d17e487cf3b8643bc2fe1344 100644 (file)
@@ -1141,10 +1141,10 @@ static int das1800_di_rbits(struct comedi_device *dev,
        return insn->n;
 }
 
-static int das1800_do_wbits(struct comedi_device *dev,
-                           struct comedi_subdevice *s,
-                           struct comedi_insn *insn,
-                           unsigned int *data)
+static int das1800_do_insn_bits(struct comedi_device *dev,
+                               struct comedi_subdevice *s,
+                               struct comedi_insn *insn,
+                               unsigned int *data)
 {
        if (comedi_dio_update_state(s, data))
                outb(s->state, dev->iobase + DAS1800_DIGITAL);
@@ -1396,14 +1396,14 @@ static int das1800_attach(struct comedi_device *dev,
        s->range_table = &range_digital;
        s->insn_bits = das1800_di_rbits;
 
-       /* do */
+       /* Digital Output subdevice */
        s = &dev->subdevices[3];
-       s->type = COMEDI_SUBD_DO;
-       s->subdev_flags = SDF_WRITABLE;
-       s->n_chan = board->do_n_chan;
-       s->maxdata = 1;
-       s->range_table = &range_digital;
-       s->insn_bits = das1800_do_wbits;
+       s->type         = COMEDI_SUBD_DO;
+       s->subdev_flags = SDF_WRITABLE;
+       s->n_chan       = board->do_n_chan;
+       s->maxdata      = 1;
+       s->range_table  = &range_digital;
+       s->insn_bits    = das1800_do_insn_bits;
 
        das1800_cancel(dev, dev->read_subdev);