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

staging: comedi: adl_pci6208: tidy up pci6208_ao_rinsn()

For aesthetics, rename this function to help with greps,

Change the type of 'chan' to match the type of the insn->chanspec
that it is derived from using the CR_CHAN macro.
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 a99a2943
...@@ -126,12 +126,13 @@ static int pci6208_ao_insn_write(struct comedi_device *dev, ...@@ -126,12 +126,13 @@ static int pci6208_ao_insn_write(struct comedi_device *dev,
return insn->n; return insn->n;
} }
static int pci6208_ao_rinsn(struct comedi_device *dev, static int pci6208_ao_insn_read(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data) struct comedi_insn *insn,
unsigned int *data)
{ {
struct pci6208_private *devpriv = dev->private; struct pci6208_private *devpriv = dev->private;
int chan = CR_CHAN(insn->chanspec); unsigned int chan = CR_CHAN(insn->chanspec);
int i; int i;
for (i = 0; i < insn->n; i++) for (i = 0; i < insn->n; i++)
...@@ -206,7 +207,7 @@ static int pci6208_auto_attach(struct comedi_device *dev, ...@@ -206,7 +207,7 @@ static int pci6208_auto_attach(struct comedi_device *dev,
s->maxdata = 0xffff; s->maxdata = 0xffff;
s->range_table = &range_bipolar10; s->range_table = &range_bipolar10;
s->insn_write = pci6208_ao_insn_write; s->insn_write = pci6208_ao_insn_write;
s->insn_read = pci6208_ao_rinsn; s->insn_read = pci6208_ao_insn_read;
s = &dev->subdevices[1]; s = &dev->subdevices[1];
/* digital input subdevice */ /* digital input subdevice */
......
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