]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: rti800: tidy up ai two's complement support
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 9 Apr 2013 01:20:41 +0000 (18:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Apr 2013 23:29:24 +0000 (16:29 -0700)
commitc7c1161dfd98c00a1fa4691057b7418b8c26a1f2
tree2921ed46c1a4fe6c325b8b4b82b8b2107c4583fd
parent929b343297f3f7419a67dff4e8f4110f919682f8
staging: comedi: rti800: tidy up ai two's complement support

The analog input on this board can return data as either two's
complement or straight binary data. The format is selected by a
jumper of the board and enabled by the user as option[4] when
attaching to the board.

Replace the adc_coding enum with a simple bool to indicate that
the data is returned in two's complement form.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/rti800.c