]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commitee4c7709fbb29860c3200b1296a18adff01d2307
treef9ff0bcc637e3def4e6458a69f8103892c0133bc
parent1198f6b09f05e1aef96e59c6af359dffa6d926e1
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