From: H Hartley Sweeten Date: Wed, 5 Nov 2014 17:21:07 +0000 (-0700) Subject: staging: comedi: usbduxsigma: use comedi_async 'scans_done' to detect AI EOA X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~395 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29ee9fbaa1bfa2e89fc7b5774f18d22bc20dd574;p=pandora-kernel.git staging: comedi: usbduxsigma: use comedi_async 'scans_done' to detect AI EOA Remove the private data member 'ai_sample_count' and use the comedi_async 'scans_done' member to detect the analog input end-of-acquisition. Move the EOA check so it happens after adding the samples from the current urb to the async buffer. This prevents the unnecessary resubmit of the urb when the EOA occurs. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed