staging: comedi: vmk80xx: simplify vmk80xx_reset_device()
authorIan Abbott <abbotti@mev.co.uk>
Thu, 14 Feb 2013 16:42:14 +0000 (16:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Feb 2013 18:17:55 +0000 (10:17 -0800)
commite8f311a5b6b9163f6aeba2524eaab92dc3b0fb6f
tree48728554395e4184c9eb50e18987bc9397e67a02
parent0cbfc8269b980adafa7b529bb529a2fc316c5405
staging: comedi: vmk80xx: simplify vmk80xx_reset_device()

vmk80xx_reset_device() is called during initialization of a Velleman
K8055 (aka VM110) to send a reset command to the hardware.  The current
function is a bit long-winded and doesn't set the TRANS_OUT_BUSY flag to
prevent re-use of the transmit buffer while the URB is in progress.

Rewrite the function to use vmk80xx_write_packet() to send the command.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/vmk80xx.c