From: H Hartley Sweeten Date: Wed, 5 Nov 2014 17:31:33 +0000 (-0700) Subject: staging: comedi: drivers: introduce comedi_nsamples_left() X-Git-Tag: omap-for-v3.20/drop-legacy-3517~70^2~367 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f615915ee5faf74d8912df1694e810c8269f6b3f;p=pandora-kernel.git staging: comedi: drivers: introduce comedi_nsamples_left() Introduce a helper function to calculate the number of samples remaining when the cmd->stop_src is TRIG_COUNT. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed