staging: comedi: mf6x4: A/D converter uses 2's complement coding
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 6 Oct 2015 18:11:11 +0000 (11:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 05:55:31 +0000 (22:55 -0700)
commit597063341936a3ccddb30783781d474d7e7d70cd
tree55583885912f92678166d2b12a732f45747a45c1
parentc9ab30239aa33e5d79917303f9c67dff98cc75c3
staging: comedi: mf6x4: A/D converter uses 2's complement coding

According to the user's manual, the A/D converter uses 2's complement
coding. Use the comedi_offset_munge() helper to convert the data to
the offset binary format used by comedi.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
 drivers/staging/comedi/drivers/mf6x4.c | 5 ++---
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/mf6x4.c