staging: comedi: usbduxsigma: tidy up analog output (*insn_{read, write})
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 20:04:31 +0000 (13:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:41:07 +0000 (20:41 +0900)
commit2dd87acb1a38a317320be75ca49f53491fa6f577
treedf3cdc0a233c0a9b21c7a71d7e20255bb10ce003
parentfb1ef622e7a398bb22127eed0684c8cc42650986
staging: comedi: usbduxsigma: tidy up analog output (*insn_{read, write})

Rename the functions so they have namespace associated with the driver.
Rename the local variable used for the private data pointer.

Return -EBUSY from the (*insn_write) function if an asynchronous command
is running that the write cannot be completed.

Don't save the cached value of the analog output for readback unless
the command to set it is successful.

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