Commit 22f75dac authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e614d171
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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 */

+0 −1
Original line number Diff line number Diff line
@@ -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;