staging: comedi: rtd520: remove unnecessary comments from rtd_ao_winsn()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 25 Sep 2015 00:52:06 +0000 (17:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 01:32:21 +0000 (03:32 +0200)
These comments are cut-and-paste from the old skeleton driver. Remove
them.

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/rtd520.c

index b4d8f591649d25358db597ecd7b2ac52fd0c5181..02dcb229c967c17c70895f91c96de2826f91d9c9 100644 (file)
@@ -1067,8 +1067,6 @@ static int rtd_ao_winsn(struct comedi_device *dev,
        writew(range & 7,
               dev->mmio + ((chan == 0) ? LAS0_DAC1_CTRL : LAS0_DAC2_CTRL));
 
-       /* Writing a list of values to an AO channel is probably not
-        * very useful, but that's how the interface is defined. */
        for (i = 0; i < insn->n; ++i) {
                int val = data[i] << 3;
 
@@ -1081,7 +1079,6 @@ static int rtd_ao_winsn(struct comedi_device *dev,
                        val = data[i] << 3;
                }
 
-               /* a typical programming sequence */
                writew(val, devpriv->las1 +
                        ((chan == 0) ? LAS1_DAC1_FIFO : LAS1_DAC2_FIFO));
                writew(0, dev->mmio + ((chan == 0) ? LAS0_DAC1 : LAS0_DAC2));
@@ -1093,7 +1090,6 @@ static int rtd_ao_winsn(struct comedi_device *dev,
                        return ret;
        }
 
-       /* return the number of samples read/written */
        return i;
 }