From: H Hartley Sweeten Date: Tue, 4 Jun 2013 02:04:45 +0000 (-0700) Subject: staging: comedi: pcmda12: cleanup pcmda12_ao_insn_read() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~279 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cac10bf92a0678bbc0c336e058f89a4a6e95aa96;p=pandora-kernel.git staging: comedi: pcmda12: cleanup pcmda12_ao_insn_read() Remove the boilerplate comment from the 'skel' driver. To initiate the simultaneaous transfer, only one analog output register needs to be read. Move the read out of the for() loop. (*insn_read) functions should return an errno or the number of samples actually read. Change the final return to insn->n to make this clear. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed