From: H Hartley Sweeten Date: Fri, 21 Nov 2014 17:19:10 +0000 (-0700) Subject: staging: comedi: drivers: have core hook up default (*insn_read) for readback X-Git-Tag: omap-for-v3.20/drop-legacy-3517~70^2~97 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa11672ef43c05d4ff5580ad41ceae9867e5430d;p=pandora-kernel.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed