staging: comedi: addi_apci_3120: remove private data 'ui_AiReadData'

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>
This commit is contained in:
H Hartley Sweeten
2014-11-04 10:54:32 -07:00
committed by Greg Kroah-Hartman
parent e614d17108
commit 22f75dac46
2 changed files with 1 additions and 4 deletions

View 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 */

View 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;