From: H Hartley Sweeten Date: Tue, 20 Jan 2015 19:06:03 +0000 (-0700) Subject: staging: comedi: pcl818: introduce pcl818_ai_write_sample() X-Git-Tag: fixes-v4.0-rc1~99^2~232 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d615416de6157812e6d7b732991ece884fc6c59e;p=pandora-kernel.git staging: comedi: pcl818: introduce pcl818_ai_write_sample() This driver can acquire analog input samples during the async command with DMA, by using the FIFO, or sample-by-sample using the End-Of-Conversion interrupt. All three methods do the following sequence: 1) check for channel dropout 2) add the sample to the async buffer 3) advance the channel dropout detection and detect the end of the command Merge this sequence into a new helper function. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed