dt9812: Fix logical || vs bitwise |.
authorIan Abbott <abbotti@mev.co.uk>
Tue, 17 Jan 2012 10:13:59 +0000 (10:13 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Tue, 17 Jan 2012 10:13:59 +0000 (10:13 +0000)
commita73f630e45cad6cfe02181ca9fb34423d18b9806
tree07cbfb03ac6acd955dbc422d73ca5b97fde4a41e
parentb805037624b1789d296d9921c22e94c22af425c9
dt9812: Fix logical || vs bitwise |.

Fix bug discovered by Dan Carpenter in the "staging" sources.

In dt9212_configure_gain(), some bitmask constants were OR'ed together
logically (giving the value 1) when they should have been OR'ed together
bitwise.  The effect of this bug is that the analog gain would be set
incorrectly on the AI subdevice for certain ranges.

As it happens, the driver is incomplete regarding range settings anyway,
so the bug fix currently has no effect.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
comedi/drivers/dt9812.c