From: H Hartley Sweeten Date: Tue, 14 May 2013 21:33:09 +0000 (-0700) Subject: staging: comedi: dt9812: cleanup analog in subdevice (*insn_read) X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~611 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83a69f5adb81b3432fb1e58485639c391cc65f17;p=pandora-kernel.git staging: comedi: dt9812: cleanup analog in subdevice (*insn_read) For aesthetic reasons, rename the function to help with grepping and rename some of the local vars. dt9812_analog_in() can fail. Make sure to check for any failure and return the errno. The comedi core expects the (*insn_read) functions to return either an errno or the number of samples read. Change the final return to insn->n to make this clearer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed