mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 11:13:58 +08:00
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>
This commit is contained in:
parent
8366404bf1
commit
7c1e5bc754
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user