staging: comedi: das08: Support read-back of AO subdevice
authorIan Abbott <abbotti@mev.co.uk>
Fri, 31 Aug 2012 19:41:44 +0000 (20:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 19:00:42 +0000 (12:00 -0700)
commitf0ba1d6e19c5e7f91005eaa4d9c14851e217feea
treec255f7a1c665f3d2af1d8dd15dc858e18c800c7f
parent8432eb35a924440e21bccd965009b101a37a3aad
staging: comedi: das08: Support read-back of AO subdevice

Stash the last value written to each AO channel in private data and
support the INSN_READ instruction to read it back.  Don't bother setting
the SDF_READABLE subdevice flag though as the hardware isn't really
readable - we're just faking it.

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