diff options
author | H Hartley Sweeten | 2014-11-21 18:19:10 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-11-27 00:37:52 +0100 |
commit | aa11672ef43c05d4ff5580ad41ceae9867e5430d (patch) | |
tree | a44c70aebea4362baad7542f7fe10212193331fc /drivers/staging/comedi/drivers/s526.c | |
parent | staging: comedi: adv_pci1724: rename ao_ranges_1724 (diff) | |
download | kernel-qcow2-linux-aa11672ef43c05d4ff5580ad41ceae9867e5430d.tar.gz kernel-qcow2-linux-aa11672ef43c05d4ff5580ad41ceae9867e5430d.tar.xz kernel-qcow2-linux-aa11672ef43c05d4ff5580ad41ceae9867e5430d.zip |
staging: comedi: drivers: have core hook up default (*insn_read) for readback
Most of the comedi drivers that provide readback for write only subdevices now
use the comedi core comedi_alloc_subdev_readback() helper to allocate the subdevice
'reaback' member instead of using some member in their private data. These drivers
also hook up the (*insn_read) callback to the comedi_readback_insn_read() helper to
provide the readback.
Have the core automatically hook up the (*insn_read) callback after allocating the
memory if the driver has not already hooked it up to a private function.
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>
Diffstat (limited to 'drivers/staging/comedi/drivers/s526.c')
-rw-r--r-- | drivers/staging/comedi/drivers/s526.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/s526.c b/drivers/staging/comedi/drivers/s526.c index 75872c6aec2a..6f3e8a08e75c 100644 --- a/drivers/staging/comedi/drivers/s526.c +++ b/drivers/staging/comedi/drivers/s526.c @@ -583,7 +583,6 @@ static int s526_attach(struct comedi_device *dev, struct comedi_devconfig *it) s->maxdata = 0xffff; s->range_table = &range_bipolar10; s->insn_write = s526_ao_insn_write; - s->insn_read = comedi_readback_insn_read; ret = comedi_alloc_subdev_readback(s); if (ret) |