diff options
| author | H Hartley Sweeten <[email protected]> | 2014-07-14 12:23:45 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2014-07-16 13:24:42 -0700 |
| commit | a10817d67f34546401f6733badd427c9decf88e8 (patch) | |
| tree | fb348d8140c4cd254f7c33e9aa6deea7efd7cbd9 /tools/perf/scripts/python | |
| 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 <[email protected]>
Reviewed-by: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions