]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: ni_labpc_common: use subdevice readback for analog outputs
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 20 Nov 2014 22:07:34 +0000 (15:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 23:39:17 +0000 (15:39 -0800)
commitc82f0e6b364890df25f2d9cd05dd4103dcc02d15
treeadb632ae93af334a9286b62cfb5b6ca23fdbc21e
parent8e06519b27921fb06bcb719d78df4a80a60ea8ac
staging: comedi: ni_labpc_common: use subdevice readback for analog outputs

Use the comedi_subdevice 'readback' member and the core provided (*insn_read)
to handle the readback of the analog output subdevice. Remove the then unused
'ao_value' member from the private data.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_labpc.h
drivers/staging/comedi/drivers/ni_labpc_common.c