From: H Hartley Sweeten Date: Thu, 20 Nov 2014 22:07:20 +0000 (-0700) Subject: staging: comedi: cb_pcidas64: fix calib_write_insn() X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~95 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e2de5e7f9f31db55399e2b4ad3b612dadaf7ebe;p=pandora-kernel.git staging: comedi: cb_pcidas64: fix calib_write_insn() The comedi core expects the (*insn_write) functions to write 'insn->n' values to the hardware and return the number of values written. Currently this function only writes the first value. For this subdevice it only makes sense to write the final data value. Fix the function to work like the core expects. For aesthetics, rename the function so it has namespace associated with the driver. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed