Re: [patch] staging: comedi: dt2811: fix a precedence bug

2016-06-21 Thread walter harms
Am 21.06.2016 15:56, schrieb Ian Abbott: > On 21/06/16 12:46, Dan Carpenter wrote: >> 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') >> Signe

Re: [patch] staging: comedi: dt2811: fix a precedence bug

2016-06-21 Thread Ian Abbott
On 21/06/16 12:46, Dan Carpenter wrote: 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 diff --git a/drivers/staging/come

[patch] staging: comedi: dt2811: fix a precedence bug

2016-06-21 Thread Dan Carpenter
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 diff --git a/drivers/staging/comedi/drivers/dt2811.c b/drivers/staging/com