]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: cb_pcidas64: use subdevice readback for 'caldac_state'
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 20 Nov 2014 22:07:19 +0000 (15:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 23:39:15 +0000 (15:39 -0800)
commit37318bdb14aba8145644c7ca4b76b1ba3efbdcae
tree45a5eaa0b47bc468b76134e8f3183b853de287ed
parentaa11672ef43c05d4ff5580ad41ceae9867e5430d
staging: comedi: cb_pcidas64: use subdevice readback for 'caldac_state'

Use the comedi_subdevice 'readback' member and the core provided (*insn_read)
to handle the readback of the write-only calibration subdevice. Remove the
then unused 'caldac_state' 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/cb_pcidas64.c