From: H Hartley Sweeten Date: Tue, 14 May 2013 21:33:53 +0000 (-0700) Subject: staging: comedi: dt9812: cleanup analog out subdevice (*insn_write) X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~609 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99928e654da031e5cbf537ab2e83997a1420e30c;p=pandora-kernel.git staging: comedi: dt9812: cleanup analog out subdevice (*insn_write) For aesthetic reasons, rename the function to help with grepping and rename some of the local vars. The dt9812_analog_out() function can fail. Make sure to check for any failure and return the errno. The comedi core expects the (*insn_write) functions to return either an errno or the number of samples written. 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