From: H Hartley Sweeten Date: Mon, 25 Aug 2014 23:04:36 +0000 (-0700) Subject: staging: comedi: das08: fix bug in das08_ao_winsn() X-Git-Tag: fixes-for-v3.18-merge-window~15^2~1016 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=862f77363966434c35f1cbc17fcf1fe9cc9f497c;p=pandora-kernel.git staging: comedi: das08: fix bug in das08_ao_winsn() The comedi core expects (*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. Fix it to work like the core expects. For aesthetics, rename the function and tidy it up a bit. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed