Commit 0c27d174 authored by Jian Zhang's avatar Jian Zhang Committed by Greg Kroah-Hartman

Staging: comedi: fix multiple line dereference coding style issue in cb_pcidas64.c

This is a patch to the cb_pcidas64.c file that fixes up a multiple line
dereference warning found by the checkpatch.pl tool.
Signed-off-by: default avatarJian Zhang <kernel@ubicomp.com.au>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9eb71946
...@@ -2462,20 +2462,21 @@ static int setup_channel_queue(struct comedi_device *dev, ...@@ -2462,20 +2462,21 @@ static int setup_channel_queue(struct comedi_device *dev,
writew(0, devpriv->main_iobase + ADC_QUEUE_CLEAR_REG); writew(0, devpriv->main_iobase + ADC_QUEUE_CLEAR_REG);
/* load external queue */ /* load external queue */
for (i = 0; i < cmd->chanlist_len; i++) { for (i = 0; i < cmd->chanlist_len; i++) {
unsigned int chanspec = cmd->chanlist[i];
int use_differential;
bits = 0; bits = 0;
/* set channel */ /* set channel */
bits |= adc_chan_bits(CR_CHAN(cmd-> bits |= adc_chan_bits(CR_CHAN(chanspec));
chanlist[i]));
/* set gain */ /* set gain */
bits |= ai_range_bits_6xxx(dev, bits |= ai_range_bits_6xxx(dev,
CR_RANGE(cmd-> CR_RANGE(chanspec));
chanlist
[i]));
/* set single-ended / differential */ /* set single-ended / differential */
bits |= se_diff_bit_6xxx(dev, use_differential = 0;
CR_AREF(cmd-> if (CR_AREF(chanspec) == AREF_DIFF)
chanlist[i]) == use_differential = 1;
AREF_DIFF); bits |= se_diff_bit_6xxx(dev, use_differential);
if (CR_AREF(cmd->chanlist[i]) == AREF_COMMON) if (CR_AREF(cmd->chanlist[i]) == AREF_COMMON)
bits |= ADC_COMMON_BIT; bits |= ADC_COMMON_BIT;
/* mark end of queue */ /* mark end of queue */
......
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