]> git.baikalelectronics.ru Git - kernel.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)
commit9e27576a22fa6a52b0967046d10c3edb070fd320
tree45a5eaa0b47bc468b76134e8f3183b853de287ed
parent9dc6b646d2b855e6d0e61f22318f06dce776be2f
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