From: H Hartley Sweeten Date: Tue, 4 Mar 2014 18:29:40 +0000 (-0700) Subject: staging: comedi: pcl818: introduce pcl818_ai_get_fifo_sample() X-Git-Tag: v3.15-rc1~139^2~663 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4206e1be3d713672a255a877b48793ecbae4d2e4;p=pandora-kernel.git staging: comedi: pcl818: introduce pcl818_ai_get_fifo_sample() To clarify the code, introduce a helper function to read the analog input data sample from the FIFO and optionally return the channel that the sample was for. The channel is used to check for dropped samples. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed