staging: comedi: me4000: use bitwise AND instead of logical
Subsystems (2)
PATCH 1/1 staging: comedi: me4000: use bitwise AND instead of logical
This was supposed to bitwise AND but there is a typo.
Fixes 1a02387063fb ('staging: comedi: me4000: remove 'board' from me4000_ai_insn_read()')
Signed-off-by Dan Carpenter <[email protected]>
drivers/staging/comedi/drivers/me4000.c +2 -2
@@ -480,7 +480,7 @@ static int me4000_ai_insn_read(struct comedi_device *dev, entry = chan |ME4000_AI_LIST_RANGE (range);if (aref =AREF_DIFF ) { -if (!(s->subdev_flags &&SDF_DIFF )) { +if (!(s->subdev_flags &SDF_DIFF )) {dev_err (dev->class_dev,"Differential inputs are not available\n" );return -EINVAL ;
@@ -559,7 +559,7 @@ static int me4000_ai_check_chanlist(struct comedi_device *dev, }if (aref =AREF_DIFF ) { -if (!(s->subdev_flags &&SDF_DIFF )) { +if (!(s->subdev_flags &SDF_DIFF )) {dev_err (dev->class_dev,"Differential inputs are not available\n" );return -EINVAL ;
Quoted 20 lines · Dan Carpenter
This was supposed to bitwise AND but there is a typo.
Fixes 1a02387063fb ('staging: comedi: me4000: remove 'board' from me4000_ai_insn_read()')Signed-off-by Dan Carpenter <[email protected]>drivers/staging/comedi/drivers/me4000.c +1
-1@@ -480,7 +480,7 @@ static int me4000_ai_insn_read(struct comedi_device *dev, entry = chan |ME4000_AI_LIST_RANGE (range);if (aref =AREF_DIFF ) { -if (!(s->subdev_flags &&SDF_DIFF )) { +if (!(s->subdev_flags &SDF_DIFF )) {dev_err (dev->class_dev,"Differential inputs are not available\n" );return -EINVAL ;
drivers/staging/comedi/drivers/me4000.c static int me4000_ai_check_chanlist(struct comedi_device *dev, · line 565
Quoted 8 lines
drivers/staging/comedi/drivers/me4000.c +1
-1@@ -559,7 +559,7 @@ static int me4000_ai_check_chanlist(struct comedi_device *dev, }if (aref =AREF_DIFF ) { -if (!(s->subdev_flags &&SDF_DIFF )) { +if (!(s->subdev_flags &SDF_DIFF )) {dev_err (dev->class_dev,"Differential inputs are not available\n" );return -EINVAL ;
Thanks for catching that.
Reviewed-by Ian Abbott <[email protected]>
Signature · 2 lines
-=( Ian Abbott @ MEV Ltd. E-mail: <[email protected]> )=- -=( Web: http://www.mev.co.uk/ )=-
Quoted 32 lines · Ian Abbott
Quoted 20 lines · Dan Carpenter
This was supposed to bitwise AND but there is a typo.
Fixes 1a02387063fb ('staging: comedi: me4000: remove 'board' from me4000_ai_insn_read()')Signed-off-by Dan Carpenter <[email protected]>drivers/staging/comedi/drivers/me4000.c +1
-1@@ -480,7 +480,7 @@ static int me4000_ai_insn_read(struct comedi_device *dev, entry = chan |ME4000_AI_LIST_RANGE (range);if (aref =AREF_DIFF ) { -if (!(s->subdev_flags &&SDF_DIFF )) { +if (!(s->subdev_flags &SDF_DIFF )) {dev_err (dev->class_dev,"Differential inputs are not available\n" );return -EINVAL ;drivers/staging/comedi/drivers/me4000.c static int me4000_ai_check_chanlist(struct comedi_device *dev, · line 565
Quoted 8 lines
drivers/staging/comedi/drivers/me4000.c +1
-1@@ -559,7 +559,7 @@ static int me4000_ai_check_chanlist(struct comedi_device *dev, }if (aref =AREF_DIFF ) { -if (!(s->subdev_flags &&SDF_DIFF )) { +if (!(s->subdev_flags &SDF_DIFF )) {dev_err (dev->class_dev,"Differential inputs are not available\n" );return -EINVAL ;Thanks for catching that.
Quoted 1 line
Reviewed-by Ian Abbott <[email protected]>
Gah... Sorry about that. Thanks for the catch Dan.
Reviewed-by H Hartley Sweeten <[email protected]>