staging: comedi: dt2811: fix a precedence bug
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 21 Jun 2016 11:46:21 +0000 (14:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 15:07:19 +0000 (17:07 +0200)
commit5ac5c3bcf57419d0aa3f53b12b8c07599a13fdcc
treeedc0c7fcdba4ecd48bc35fff80fba9347e971d37
parentc71f20ee76342376e3c4c67cdbe7421d8c4e886e
staging: comedi: dt2811: fix a precedence bug

Bitwise | has higher precedence than ?: so we need to add some
parenthesis for this to work as intended.

Fixes: 7c9574090d30 ('staging: comedi: dt2811: simplify A/D reference configuration')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/dt2811.c