]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
staging: comedi: adl_pci9111: cleanup pci9111_ao_insn_read()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 11 Sep 2012 01:53:33 +0000 (18:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Sep 2012 03:02:24 +0000 (20:02 -0700)
Remove the unnecessary comments.

The readback value does not need to be masked.

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>
drivers/staging/comedi/drivers/adl_pci9111.c

index 7d1737a8b65c99f9075a09b8b52765ca464b6a9b..98fb86b448be097822dd7c4f4a765d91932f463d 100644 (file)
@@ -1058,19 +1058,18 @@ pci9111_ao_insn_write(struct comedi_device *dev,
        return i;
 }
 
-/*  Analog output readback */
-
 static int pci9111_ao_insn_read(struct comedi_device *dev,
                                struct comedi_subdevice *s,
-                               struct comedi_insn *insn, unsigned int *data)
+                               struct comedi_insn *insn,
+                               unsigned int *data)
 {
        struct pci9111_private_data *dev_private = dev->private;
        int i;
 
        for (i = 0; i < insn->n; i++)
-               data[i] = dev_private->ao_readback & PCI9111_AO_RESOLUTION_MASK;
+               data[i] = dev_private->ao_readback;
 
-       return i;
+       return insn->n;
 }
 
 static int pci9111_di_insn_bits(struct comedi_device *dev,