staging: comedi: cb_pcimdda: cleanup the analog out read/write
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 17 Aug 2012 02:54:32 +0000 (19:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Aug 2012 15:17:36 +0000 (08:17 -0700)
commitaee815b53bca1cfa092ecd742fc59512b8030336
tree53c6cf80e146d5997347fe47f8f63b02886635fd
parentb9616b18c1dbbc3bfad9c1801fb96f41c26449e2
staging: comedi: cb_pcimdda: cleanup the analog out read/write

Use the register map define to work out the i/o address.

Cleanup the comments about the simultaneous transfer mode for
the analog outputs.

Change the return to 'insn->n', the comedi core expects the return
to be the number of data elements used. Technically the 'i' value
is correct but 'insn->n' just makes it clearer.

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/cb_pcimdda.c