diff options
| author | H Hartley Sweeten <[email protected]> | 2015-08-05 10:45:19 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2015-08-07 15:03:31 -0700 |
| commit | 7022781c460290687b374dab1c230c06091bba10 (patch) | |
| tree | 35da5f9bc4259dc8862bf76fbbc54efb2f4958ef /tools/perf/scripts/python | |
| parent | 36d59d70babc9ad4275d0c7c5e63241a077f572c (diff) | |
staging: comedi: me4000: introduce me4000_ai_get_sample()
The hardware returns two's complement values for the analog input
samples. These need to be converted to the unsigned binary format
that the comedi core expects. Introduce a helper function to handle
this.
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