From: H Hartley Sweeten Date: Tue, 26 Mar 2013 17:27:33 +0000 (-0700) Subject: staging: comedi: ni_labpc: fix labpc_calib_insn_write() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~418 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c00782b1d4b9073ae38891d636302b1267285af;p=pandora-kernel.git staging: comedi: ni_labpc: fix labpc_calib_insn_write() The comedi core expects the (*insn_write) operations to write insn->n values and return the number of values actually wrote. Make this function work like the core expects. As Ian Abbott pointed out for the eeprom writes, we really only need to write the last value to the caldac. The preceding data would be overwritten anyway. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed