staging: comedi: addi_apci_3120: remove private data 'ui_AiReadData'
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 4 Nov 2014 17:54:32 +0000 (10:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 17:34:01 +0000 (09:34 -0800)
This member of the private data was used to return analog input samples that
were acquired for the (*insn_read) using interrupts. The interrupt support
code for the (*insn_read) has been removed. Remove this unused member from
the private data.

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/addi-data/hwdrv_apci3120.c
drivers/staging/comedi/drivers/addi_apci_3120.c

index 5d15acacc2598d003a3a294cf9f932ee53e5ab3a..51cdecb211d6b9645a60a9c223fc9d948d58c960 100644 (file)
@@ -147,7 +147,7 @@ static int apci3120_ai_insn_read(struct comedi_device *dev,
        struct apci3120_private *devpriv = dev->private;
        unsigned int divisor;
        unsigned int ns;
-       unsigned short us_TmpValue, i;
+       unsigned short us_TmpValue;
 
        /*  fix conversion time to 10 us */
        ns = 10000;
@@ -157,8 +157,6 @@ static int apci3120_ai_insn_read(struct comedi_device *dev,
        devpriv->mode = 0;
 
        if (insn->unused[0] == 222) {   /*  second insn read */
-               for (i = 0; i < insn->n; i++)
-                       data[i] = devpriv->ui_AiReadData[i];
        } else {
                devpriv->tsk_Current = current; /*  Save the current process task structure */
 
index 572d545e7492c1a594906f9c7cf5b6d4d3d3907b..dc05b2f616ca117ac888bebda710e4b54cd46c37 100644 (file)
@@ -115,7 +115,6 @@ struct apci3120_private {
        unsigned int osc_base;
        unsigned int ui_AiNbrofChannels;
        unsigned int ui_AiChannelList[32];
-       unsigned int ui_AiReadData[32];
        unsigned short us_UseDma;
        unsigned char b_DmaDoubleBuffer;
        unsigned int ui_DmaActualBuffer;