]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: comedi: icp_multi: fix clock comment CodingStyle
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 7 Oct 2015 21:52:45 +0000 (14:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 05:56:42 +0000 (22:56 -0700)
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: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/icp_multi.c

index c3151f4fa550d44beab3bb1da9f21c011288fa86..3d0a3c40b640d823788fdfdf5aa173a795b4a1b2 100644 (file)
@@ -147,10 +147,10 @@ static int icp_multi_insn_read_ai(struct comedi_device *dev,
        return ret ? ret : n;
 }
 
-static int icp_multi_ao_eoc(struct comedi_device *dev,
-                           struct comedi_subdevice *s,
-                           struct comedi_insn *insn,
-                           unsigned long context)
+static int icp_multi_ao_ready(struct comedi_device *dev,
+                             struct comedi_subdevice *s,
+                             struct comedi_insn *insn,
+                             unsigned long context)
 {
        unsigned int status;
 
@@ -179,9 +179,8 @@ static int icp_multi_ao_insn_write(struct comedi_device *dev,
                unsigned int val = data[i];
                int ret;
 
-               /*  Wait for analogue output data register to be
-                *  ready for new data, or get fed up waiting */
-               ret = comedi_timeout(dev, s, insn, icp_multi_ao_eoc, 0);
+               /* Wait for analog output to be ready for new data */
+               ret = comedi_timeout(dev, s, insn, icp_multi_ao_ready, 0);
                if (ret)
                        return ret;