From: H Hartley Sweeten Date: Thu, 24 Jul 2014 17:14:26 +0000 (-0700) Subject: staging: comedi: ni_tio: fix ni_tio_insn_read() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~269 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27c4d23cb070fd83f5705aabfad8d277fed9e022;p=pandora-kernel.git staging: comedi: ni_tio: fix ni_tio_insn_read() The comedi core expects the (*insn_read) operations to read insn->n values and return the number of values read. Fix this function to work line the core expects. For aesthetics, factor out the code that reads the SM_Save_Reg. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed