commit | 60e6644399337185a860552cba977f7c47ac0723 | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Wed Oct 22 15:36:43 2014 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Oct 29 16:03:12 2014 +0800 |
tree | e16547038cc59834f9ca690d1dc9dfed9d5b65c5 | |
parent | d4c2acd233191fe67fddac7bf74e93ddb12bc1f7 [diff] |
staging: comedi: gsc_hpdi: use comedi_buf_write_samples() Use comedi_buf_write_samples() to add the samples to the async buffer. That function will handle the '* sizeof(foo)' calculation to determine the number of bytes to add. 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>