From: H Hartley Sweeten Date: Tue, 26 Mar 2013 17:25:57 +0000 (-0700) Subject: staging: comedi: ni_labpc: fix labpc_eeprom_insn_write() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~421 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7a1aa62823d8cc861aaad078006e6742c114a0e;p=pandora-kernel.git staging: comedi: ni_labpc: fix labpc_eeprom_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, we really only need to write the last value to the eeprom. The preceding data would be overwritten anyway. Also, remove the noise about invalid channels. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed