staging: comedi: rti802: tidy up rti802_ao_insn_write()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 13 Mar 2014 22:48:39 +0000 (15:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 21:20:09 +0000 (14:20 -0700)
commit57450d90364c8836b84c428f68e7de518a0b46f3
treee0901834537ffbe02578caa7b35d17e2f11b8bcf
parentc0c6ae260a44de5b3bb9996b0ad82cd72f38427b
staging: comedi: rti802: tidy up rti802_ao_insn_write()

Use comedi_offset_munge() to handle munging the offset binary to two's
complement.

Tidy up the function a bit.

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