commit | a10817d67f34546401f6733badd427c9decf88e8 | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Mon Jul 14 12:23:45 2014 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Jul 16 13:24:42 2014 -0700 |
tree | fb348d8140c4cd254f7c33e9aa6deea7efd7cbd9 | |
parent | a52b53e4a743988667e5db7cd0de1cdb0732b4f9 [diff] |
staging: comedi: ni_mio_common: tidy up ni_ao_munge() Use the bytes_per_sample() helper instead of 'sizeof(short)' to clarify the length calculation. Use comedi_offset_munge() to handle the unsigned to two's complement munge of the data for bipolar ranges. Tidy up the local variables. 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>