commit | 7022781c460290687b374dab1c230c06091bba10 | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Wed Aug 05 10:45:19 2015 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Aug 07 15:03:31 2015 -0700 |
tree | 35da5f9bc4259dc8862bf76fbbc54efb2f4958ef | |
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 <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>