]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: quatech_daqp_cs: use comedi_offset_munge() in ao (*insn_write)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 5 Oct 2015 21:22:51 +0000 (14:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 04:16:05 +0000 (21:16 -0700)
commitec7c31a51aec38c8256e9ab18b5077f3e76446e0
treeb1e7297a9f9672484b251e7f8ad294a71955ace8
parent6ee4198e5aa9d4f7d665197c7999ee5937799d28
staging: comedi: quatech_daqp_cs: use comedi_offset_munge() in ao (*insn_write)

Use the comedi_offset_munge() helper to do the offset binary to two's
complement conversion when writing a new analog output value.

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