summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-06-27 22:07:05 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-06 22:40:06 (GMT)
commit7c1e5bc7544db67985fed627cba206fc5dee6405 (patch)
tree51d38df38026c15e965e25dfb852153ab2615e65 /drivers/staging
parent8366404bf1c034d902af06a6a6d88fe77a2cc7fb (diff)
downloadlinux-fsl-qoriq-7c1e5bc7544db67985fed627cba206fc5dee6405.tar.xz
staging: comedi: adl_pci6208: cleanup pci6208_ao_rinsn()
For aesthetic reasons, reorder the local variables and change the return value to 'insn->n'. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/comedi/drivers/adl_pci6208.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/adl_pci6208.c b/drivers/staging/comedi/drivers/adl_pci6208.c
index 7120878..aa2db5d 100644
--- a/drivers/staging/comedi/drivers/adl_pci6208.c
+++ b/drivers/staging/comedi/drivers/adl_pci6208.c
@@ -107,13 +107,13 @@ static int pci6208_ao_rinsn(struct comedi_device *dev,
struct comedi_insn *insn, unsigned int *data)
{
struct pci6208_private *devpriv = dev->private;
- int i;
int chan = CR_CHAN(insn->chanspec);
+ int i;
for (i = 0; i < insn->n; i++)
data[i] = devpriv->ao_readback[chan];
- return i;
+ return insn->n;
}
static int pci6208_dio_insn_bits(struct comedi_device *dev,