Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186737
b: refs/heads/master
c: 7df1735
h: refs/heads/master
i:
  186735: 49f7ac1
v: v3
  • Loading branch information
Benjamin Adolphi authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 9e64dba commit 36832cf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 27aa7320972a130ba3cd2d4004c2568e7c40f01e
refs/heads/master: 7df1735bebee6d1f3492c79ab110f3a6e67e0244
18 changes: 10 additions & 8 deletions trunk/drivers/staging/comedi/drivers/adq12b.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,16 @@ static int adq12b_attach(struct comedi_device *dev, struct comedi_devconfig *it)
unipolar = it->options[1];
differential = it->options[2];

printk("comedi%d: adq12b called with options base=0x%03lx, %s and %s\n",
dev->minor, iobase, (unipolar == 1) ? "unipolar" : "bipolar",
printk(KERN_INFO "comedi%d: adq12b called with options base=0x%03lx, "
"%s and %s\n", dev->minor, iobase,
(unipolar == 1) ? "unipolar" : "bipolar",
(differential == 1) ? "differential" : "single-ended");

/* if no address was specified, try the default 0x300 */
if (iobase == 0) {
printk
("comedi%d: adq12b warning: I/O base address not specified. Trying the default 0x300.\n",
dev->minor);
printk(KERN_WARNING "comedi%d: adq12b warning: I/O base "
"address not specified. Trying the default 0x300.\n",
dev->minor);
iobase = 0x300;
}

Expand Down Expand Up @@ -289,7 +290,7 @@ static int adq12b_attach(struct comedi_device *dev, struct comedi_devconfig *it)
s->range_table = &range_digital;
s->insn_bits = adq12b_do_insn_bits;

printk("attached\n");
printk(KERN_INFO "attached\n");

return 0;
}
Expand All @@ -309,7 +310,7 @@ static int adq12b_detach(struct comedi_device *dev)

kfree(devpriv);

printk("comedi%d: adq12b: removed\n", dev->minor);
printk(KERN_INFO "comedi%d: adq12b: removed\n", dev->minor);

return 0;
}
Expand Down Expand Up @@ -354,7 +355,8 @@ static int adq12b_ai_rinsn(struct comedi_device *dev,
hi = inb(dev->iobase + ADQ12B_ADHIG);
lo = inb(dev->iobase + ADQ12B_ADLOW);

/* printk("debug: chan=%d range=%d status=%d hi=%d lo=%d\n", channel, range, status, hi, lo); */
/* printk("debug: chan=%d range=%d status=%d hi=%d lo=%d\n",
channel, range, status, hi, lo); */
data[n] = (hi << 8) | lo;

}
Expand Down

0 comments on commit 36832cf

Please sign in to comment.