From: H Hartley Sweeten Date: Tue, 23 Apr 2013 01:37:03 +0000 (-0700) Subject: staging: comedi: das800: tidy up das800_ai_insn_read() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4780a3afb944765f4b94d79463e570e4472ccb6;p=pandora-kernel.git staging: comedi: das800: tidy up das800_ai_insn_read() Introduce a couple helper functions to read the 16-bit analog input sample and to wait for the analog conversion to complete. Tidy up the das800_ai_insn_read() function by using the new helpers. Also, remove the need for 'thisboard' in the function by checking the subdevice 'maxdata' variable to determine the analog input resolution. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed