From: H Hartley Sweeten Date: Wed, 5 Aug 2015 17:45:06 +0000 (-0700) Subject: staging: comedi: me4000: simplify ai_prepare() X-Git-Tag: omap-for-v4.3/fixes-merge-window~44^2~206 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=272e426ebca118cf202e4cf43dddf65ff358e953;p=pandora-kernel.git staging: comedi: me4000: simplify ai_prepare() The ai (*do_cmd_test) validates the trigger sources in Step 2b to ensure that they are compatible. Save the 'ai_ctrl_mode' that will be used in the private data so that ai_prepare(), which is called by the ai (*do_cmd), does not have to recheck the sources in order to figure it out. Also, tidy up the stop trigger checks so that the ME4000_AI_CTRL_HF_IRQ bit is set in the common code path. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed