]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: usbduxsigma: use comedi_offset_munge()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 14 Aug 2015 18:39:42 +0000 (11:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:14 +0000 (18:24 -0700)
commitd3f1e38830f7201d901aa456050d00be1931b248
tree49de30b5b63d3bbb83fdb752b1eed6c90b7bbddb
parentc20d199492b48402cef24a9bab599bc10e0d2a3c
staging: comedi: usbduxsigma: use comedi_offset_munge()

Use the comedi_offset_munge() helper to convert the hardware two's
complement values to the offset binary format expected by comedi.

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