From: H Hartley Sweeten Date: Tue, 4 Jun 2013 02:05:08 +0000 (-0700) Subject: staging: comedi: pcmda12: cleanup pcmda12_ao_insn_write() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~278 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0dc084e13145cd75bab09e08d7b7db84d09e319;p=pandora-kernel.git staging: comedi: pcmda12: cleanup pcmda12_ao_insn_write() Only the last value needs to be saved for readback. Remove the LSB and MSB macros. (*insn_write) 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