From: H Hartley Sweeten Date: Tue, 29 Apr 2014 19:59:46 +0000 (-0700) Subject: staging: comedi: addi_common.h: remove 'ui_AiNbrofScans' from private data X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~1057 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaca0032f1b5be78b0e8fe55934fd8db5d95d2d1;p=pandora-kernel.git staging: comedi: addi_common.h: remove 'ui_AiNbrofScans' from private data This member of the private data is a copy of the cmd->stop_arg. Use that instead. Fix the b_AiContinuous check in apci3120_ai_cmd(). The (*do_cmdtest) validates that the cmd->stop_arg os >= 1 for TRIG_COUNT and 0 for TRIG_NONE. The correct test to set this flag is (cmd->stop_src == TRIG_NONE). Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed