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

staging: comedi: icp_multi: fix clock comment CodingStyle

Reword the block comment to fix a CodingStyle issue.

For aesthetics, also rename the icp_multi_ao_eoc() function. It's testing
for the analog output to be 'ready' not for an 'end-of-conversion'.
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 c4f20dd0
...@@ -147,7 +147,7 @@ static int icp_multi_insn_read_ai(struct comedi_device *dev, ...@@ -147,7 +147,7 @@ static int icp_multi_insn_read_ai(struct comedi_device *dev,
return ret ? ret : n; return ret ? ret : n;
} }
static int icp_multi_ao_eoc(struct comedi_device *dev, static int icp_multi_ao_ready(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned long context) unsigned long context)
...@@ -179,9 +179,8 @@ static int icp_multi_ao_insn_write(struct comedi_device *dev, ...@@ -179,9 +179,8 @@ static int icp_multi_ao_insn_write(struct comedi_device *dev,
unsigned int val = data[i]; unsigned int val = data[i];
int ret; int ret;
/* Wait for analogue output data register to be /* Wait for analog output to be ready for new data */
* ready for new data, or get fed up waiting */ ret = comedi_timeout(dev, s, insn, icp_multi_ao_ready, 0);
ret = comedi_timeout(dev, s, insn, icp_multi_ao_eoc, 0);
if (ret) if (ret)
return ret; return ret;
......
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