Re: staging: comedi: Fix boolean/logical and mix-up.
On Wed, Nov 27, 2013 at 04:59:17PM +, Hartley Sweeten wrote: > > Added Greg KH and the staging devel list to the CCs. > > I just noticed that Dan Carpenter already submitted a patch that fixed this. > It was merged as commit 9382c06e2d192adec090fb09ff0b699e951f88e1. Ah, I didn't look at -next. thanks, Dave -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
RE: staging: comedi: Fix boolean/logical and mix-up.
On Wednesday, November 27, 2013 9:39 AM, Hartley Sweeten wrote: > On Tuesday, November 26, 2013 7:57 PM, Dave Jones wrote: >> Introduced in commit b3ff824a81e8. >> >> Signed-off-by: Dave Jones >> >> diff --git a/drivers/staging/comedi/drivers/pcl730.c >> b/drivers/staging/comedi/drivers/pcl730.c >> index d041b714db29..2baaf1db6fbf 100644 >> --- a/drivers/staging/comedi/drivers/pcl730.c >> +++ b/drivers/staging/comedi/drivers/pcl730.c >> @@ -173,11 +173,11 @@ static int pcl730_do_insn_bits(struct comedi_device >> *dev, >> if (mask) { >> if (mask & 0x00ff) >> outb(s->state & 0xff, dev->iobase + reg); >> -if ((mask & 0xff00) & (s->n_chan > 8)) >> +if ((mask & 0xff00) && (s->n_chan > 8)) >> outb((s->state >> 8) & 0xff, dev->iobase + reg + 1); >> -if ((mask & 0xff) & (s->n_chan > 16)) >> +if ((mask & 0xff) && (s->n_chan > 16)) >> outb((s->state >> 16) & 0xff, dev->iobase + reg + 2); >> -if ((mask & 0xff00) & (s->n_chan > 24)) >> +if ((mask & 0xff00) && (s->n_chan > 24)) >> outb((s->state >> 24) & 0xff, dev->iobase + reg + 3); >> } > > My bad... > > Added Greg KH and the staging devel list to the CCs. > > Acked-by: H Hartley Sweeten Dave, I just noticed that Dan Carpenter already submitted a patch that fixed this. It was merged as commit 9382c06e2d192adec090fb09ff0b699e951f88e1. Hartley ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
RE: staging: comedi: Fix boolean/logical and mix-up.
On Tuesday, November 26, 2013 7:57 PM, Dave Jones wrote: > Introduced in commit b3ff824a81e8. > > Signed-off-by: Dave Jones > > diff --git a/drivers/staging/comedi/drivers/pcl730.c > b/drivers/staging/comedi/drivers/pcl730.c > index d041b714db29..2baaf1db6fbf 100644 > --- a/drivers/staging/comedi/drivers/pcl730.c > +++ b/drivers/staging/comedi/drivers/pcl730.c > @@ -173,11 +173,11 @@ static int pcl730_do_insn_bits(struct comedi_device > *dev, > if (mask) { > if (mask & 0x00ff) > outb(s->state & 0xff, dev->iobase + reg); > - if ((mask & 0xff00) & (s->n_chan > 8)) > + if ((mask & 0xff00) && (s->n_chan > 8)) > outb((s->state >> 8) & 0xff, dev->iobase + reg + 1); > - if ((mask & 0xff) & (s->n_chan > 16)) > + if ((mask & 0xff) && (s->n_chan > 16)) > outb((s->state >> 16) & 0xff, dev->iobase + reg + 2); > - if ((mask & 0xff00) & (s->n_chan > 24)) > + if ((mask & 0xff00) && (s->n_chan > 24)) > outb((s->state >> 24) & 0xff, dev->iobase + reg + 3); > } My bad... Added Greg KH and the staging devel list to the CCs. Acked-by: H Hartley Sweeten -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
RE: staging: comedi: Fix boolean/logical and mix-up.
On Tuesday, November 26, 2013 7:57 PM, Dave Jones wrote: Introduced in commit b3ff824a81e8. Signed-off-by: Dave Jones da...@fedoraproject.org diff --git a/drivers/staging/comedi/drivers/pcl730.c b/drivers/staging/comedi/drivers/pcl730.c index d041b714db29..2baaf1db6fbf 100644 --- a/drivers/staging/comedi/drivers/pcl730.c +++ b/drivers/staging/comedi/drivers/pcl730.c @@ -173,11 +173,11 @@ static int pcl730_do_insn_bits(struct comedi_device *dev, if (mask) { if (mask 0x00ff) outb(s-state 0xff, dev-iobase + reg); - if ((mask 0xff00) (s-n_chan 8)) + if ((mask 0xff00) (s-n_chan 8)) outb((s-state 8) 0xff, dev-iobase + reg + 1); - if ((mask 0xff) (s-n_chan 16)) + if ((mask 0xff) (s-n_chan 16)) outb((s-state 16) 0xff, dev-iobase + reg + 2); - if ((mask 0xff00) (s-n_chan 24)) + if ((mask 0xff00) (s-n_chan 24)) outb((s-state 24) 0xff, dev-iobase + reg + 3); } My bad... Added Greg KH and the staging devel list to the CCs. Acked-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
RE: staging: comedi: Fix boolean/logical and mix-up.
On Wednesday, November 27, 2013 9:39 AM, Hartley Sweeten wrote: On Tuesday, November 26, 2013 7:57 PM, Dave Jones wrote: Introduced in commit b3ff824a81e8. Signed-off-by: Dave Jones da...@fedoraproject.org diff --git a/drivers/staging/comedi/drivers/pcl730.c b/drivers/staging/comedi/drivers/pcl730.c index d041b714db29..2baaf1db6fbf 100644 --- a/drivers/staging/comedi/drivers/pcl730.c +++ b/drivers/staging/comedi/drivers/pcl730.c @@ -173,11 +173,11 @@ static int pcl730_do_insn_bits(struct comedi_device *dev, if (mask) { if (mask 0x00ff) outb(s-state 0xff, dev-iobase + reg); -if ((mask 0xff00) (s-n_chan 8)) +if ((mask 0xff00) (s-n_chan 8)) outb((s-state 8) 0xff, dev-iobase + reg + 1); -if ((mask 0xff) (s-n_chan 16)) +if ((mask 0xff) (s-n_chan 16)) outb((s-state 16) 0xff, dev-iobase + reg + 2); -if ((mask 0xff00) (s-n_chan 24)) +if ((mask 0xff00) (s-n_chan 24)) outb((s-state 24) 0xff, dev-iobase + reg + 3); } My bad... Added Greg KH and the staging devel list to the CCs. Acked-by: H Hartley Sweeten hswee...@visionengravers.com Dave, I just noticed that Dan Carpenter already submitted a patch that fixed this. It was merged as commit 9382c06e2d192adec090fb09ff0b699e951f88e1. Hartley ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: staging: comedi: Fix boolean/logical and mix-up.
On Wed, Nov 27, 2013 at 04:59:17PM +, Hartley Sweeten wrote: Added Greg KH and the staging devel list to the CCs. I just noticed that Dan Carpenter already submitted a patch that fixed this. It was merged as commit 9382c06e2d192adec090fb09ff0b699e951f88e1. Ah, I didn't look at -next. thanks, Dave -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
staging: comedi: Fix boolean/logical and mix-up.
Introduced in commit b3ff824a81e8. Signed-off-by: Dave Jones diff --git a/drivers/staging/comedi/drivers/pcl730.c b/drivers/staging/comedi/drivers/pcl730.c index d041b714db29..2baaf1db6fbf 100644 --- a/drivers/staging/comedi/drivers/pcl730.c +++ b/drivers/staging/comedi/drivers/pcl730.c @@ -173,11 +173,11 @@ static int pcl730_do_insn_bits(struct comedi_device *dev, if (mask) { if (mask & 0x00ff) outb(s->state & 0xff, dev->iobase + reg); - if ((mask & 0xff00) & (s->n_chan > 8)) + if ((mask & 0xff00) && (s->n_chan > 8)) outb((s->state >> 8) & 0xff, dev->iobase + reg + 1); - if ((mask & 0xff) & (s->n_chan > 16)) + if ((mask & 0xff) && (s->n_chan > 16)) outb((s->state >> 16) & 0xff, dev->iobase + reg + 2); - if ((mask & 0xff00) & (s->n_chan > 24)) + if ((mask & 0xff00) && (s->n_chan > 24)) outb((s->state >> 24) & 0xff, dev->iobase + reg + 3); } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
staging: comedi: Fix boolean/logical and mix-up.
Introduced in commit b3ff824a81e8. Signed-off-by: Dave Jones da...@fedoraproject.org diff --git a/drivers/staging/comedi/drivers/pcl730.c b/drivers/staging/comedi/drivers/pcl730.c index d041b714db29..2baaf1db6fbf 100644 --- a/drivers/staging/comedi/drivers/pcl730.c +++ b/drivers/staging/comedi/drivers/pcl730.c @@ -173,11 +173,11 @@ static int pcl730_do_insn_bits(struct comedi_device *dev, if (mask) { if (mask 0x00ff) outb(s-state 0xff, dev-iobase + reg); - if ((mask 0xff00) (s-n_chan 8)) + if ((mask 0xff00) (s-n_chan 8)) outb((s-state 8) 0xff, dev-iobase + reg + 1); - if ((mask 0xff) (s-n_chan 16)) + if ((mask 0xff) (s-n_chan 16)) outb((s-state 16) 0xff, dev-iobase + reg + 2); - if ((mask 0xff00) (s-n_chan 24)) + if ((mask 0xff00) (s-n_chan 24)) outb((s-state 24) 0xff, dev-iobase + reg + 3); } -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/