]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: comedi: vmk80xx: initialize K8055 outputs to known state
authorIan Abbott <abbotti@mev.co.uk>
Thu, 14 Feb 2013 16:42:15 +0000 (16:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Feb 2013 18:17:55 +0000 (10:17 -0800)
commitf06a23c93b900c37ef14858868c00dc8f061fa22
treef7be74dd9a9b5609fcdf45de19308d92d41ff379
parente8f311a5b6b9163f6aeba2524eaab92dc3b0fb6f
staging: comedi: vmk80xx: initialize K8055 outputs to known state

vmk8055_reset_device() is called during initialization of a Velleman
K8055 (aka VM110) to send a reset command to the hardware.  I don't know
what this does, but I know that it doesn't reset the digital outputs as
I've tried it.  Since the hardware does not have any way to query the
current output values and there is only the one command to update all
the analog and digital outputs simultaneously (VMK8055_CMD_WRT_AD), send
this command during initialization to set all the analog and digital
outputs to a known state.

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