commit | f615915ee5faf74d8912df1694e810c8269f6b3f | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Wed Nov 05 10:31:33 2014 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Nov 07 09:29:41 2014 -0800 |
tree | 12db09c618ee6a64feddfc626b31552d1e988362 | |
parent | a65ccf634c91005bfc2c715b09aa43c1b18ce865 [diff] |
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 <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>