staging: comedi: rti800: use comedi_offset_munge()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 23 Sep 2015 17:43:37 +0000 (10:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 01:27:21 +0000 (03:27 +0200)
commit5e2ec8f9f311caf006a077aea5e20f6608540b8b
treefb721eeb206388fb1a6803613253659ce30af46b
parent77d010ee4eda11ec21828d834ac190b127ede9b8
staging: comedi: rti800: use comedi_offset_munge()

Use the comedi_offset_munge() helper to do the two's complement
to comedi offset binary and comedi offset binary to two's complement
conversions.

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/rti800.c