Commit 301b1ffc authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: addi_common.h: remove 'b_SingleDiff' from private data

This member is set but never used. Just remove it.
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 5a07983d
...@@ -157,14 +157,10 @@ static int addi_auto_attach(struct comedi_device *dev, ...@@ -157,14 +157,10 @@ static int addi_auto_attach(struct comedi_device *dev,
s->subdev_flags = s->subdev_flags =
SDF_READABLE | SDF_COMMON | SDF_GROUND SDF_READABLE | SDF_COMMON | SDF_GROUND
| SDF_DIFF; | SDF_DIFF;
if (devpriv->s_EeParameters.i_NbrAiChannel) { if (devpriv->s_EeParameters.i_NbrAiChannel)
s->n_chan = s->n_chan = devpriv->s_EeParameters.i_NbrAiChannel;
devpriv->s_EeParameters.i_NbrAiChannel; else
devpriv->b_SingelDiff = 0;
} else {
s->n_chan = this_board->i_NbrAiChannelDiff; s->n_chan = this_board->i_NbrAiChannelDiff;
devpriv->b_SingelDiff = 1;
}
s->maxdata = devpriv->s_EeParameters.i_AiMaxdata; s->maxdata = devpriv->s_EeParameters.i_AiMaxdata;
s->len_chanlist = this_board->i_AiChannelList; s->len_chanlist = this_board->i_AiChannelList;
s->range_table = this_board->pr_AiRangelist; s->range_table = this_board->pr_AiRangelist;
......
...@@ -141,7 +141,6 @@ struct addi_private { ...@@ -141,7 +141,6 @@ struct addi_private {
unsigned char b_InterruptMode; /* eoc eos or dma */ unsigned char b_InterruptMode; /* eoc eos or dma */
unsigned char b_EocEosInterrupt; /* Enable disable eoc eos interrupt */ unsigned char b_EocEosInterrupt; /* Enable disable eoc eos interrupt */
unsigned int ui_EocEosConversionTime; unsigned int ui_EocEosConversionTime;
unsigned char b_SingelDiff;
unsigned char b_ExttrigEnable; /* To enable or disable external trigger */ unsigned char b_ExttrigEnable; /* To enable or disable external trigger */
/* Pointer to the current process */ /* Pointer to the current process */
......
...@@ -125,13 +125,10 @@ static int apci3120_auto_attach(struct comedi_device *dev, ...@@ -125,13 +125,10 @@ static int apci3120_auto_attach(struct comedi_device *dev,
s->subdev_flags = s->subdev_flags =
SDF_READABLE | SDF_COMMON | SDF_GROUND SDF_READABLE | SDF_COMMON | SDF_GROUND
| SDF_DIFF; | SDF_DIFF;
if (this_board->i_NbrAiChannel) { if (this_board->i_NbrAiChannel)
s->n_chan = this_board->i_NbrAiChannel; s->n_chan = this_board->i_NbrAiChannel;
devpriv->b_SingelDiff = 0; else
} else {
s->n_chan = this_board->i_NbrAiChannelDiff; s->n_chan = this_board->i_NbrAiChannelDiff;
devpriv->b_SingelDiff = 1;
}
s->maxdata = this_board->i_AiMaxdata; s->maxdata = this_board->i_AiMaxdata;
s->len_chanlist = this_board->i_AiChannelList; s->len_chanlist = this_board->i_AiChannelList;
s->range_table = &range_apci3120_ai; s->range_table = &range_apci3120_ai;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment