]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: aio_aio12_8: fix ai (*insn_read)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 12 Oct 2015 19:16:35 +0000 (12:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 17:26:06 +0000 (10:26 -0700)
commit12baf2aff43e50ebe6d392988a37d1ad24d4c247
treef9ff0bcc637e3def4e6458a69f8103892c0133bc
parentbefc29ec7e96b1c0d14c69754fdf42766a05743e
staging: comedi: aio_aio12_8: fix ai (*insn_read)

According to the user manual, analog input bipolar data is 2's
complement and unipolar is straight binry. Use the core helpers
to munge the data appropriately.

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>
drivers/staging/comedi/drivers/aio_aio12_8.c