From: H Hartley Sweeten Date: Mon, 26 Jan 2015 23:17:19 +0000 (-0700) Subject: staging: comedi: das16: use comedi_async 'scans_done' to detect EOA X-Git-Tag: fixes-v4.0-rc1~99^2~122 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42c44682a59a6ea38a301c20a4ec807c6fabdd02;p=pandora-kernel.git staging: comedi: das16: use comedi_async 'scans_done' to detect EOA Refactor das16_interrupt() to use the comedi_async 'scans_done' member to detect the End-of-Acquisition for the async command. Use the helper function comedi_nsamples_left() to determine if DMA needs to be restarted. This allows the removal of the private data 'adc_byte_count' and fixes a possible integer overflow issue when that value is calculated. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed