Commit dedf3ad1 authored by Benjamin Adolphi's avatar Benjamin Adolphi Committed by Greg Kroah-Hartman

Staging: comedi: pcmad: Checkpatch cleanups

This fixes all checkpatch issues in the pcmad comedi driver.
Signed-off-by: default avatarBenjamin Adolphi <b.adolphi@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 52d83bde
...@@ -113,10 +113,9 @@ static int pcmad_ai_insn_read(struct comedi_device *dev, ...@@ -113,10 +113,9 @@ static int pcmad_ai_insn_read(struct comedi_device *dev,
data[n] = inb(dev->iobase + PCMAD_LSB); data[n] = inb(dev->iobase + PCMAD_LSB);
data[n] |= (inb(dev->iobase + PCMAD_MSB) << 8); data[n] |= (inb(dev->iobase + PCMAD_MSB) << 8);
if (devpriv->twos_comp) { if (devpriv->twos_comp)
data[n] ^= (1 << (this_board->n_ai_bits - 1)); data[n] ^= (1 << (this_board->n_ai_bits - 1));
} }
}
return n; return n;
} }
...@@ -135,7 +134,7 @@ static int pcmad_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -135,7 +134,7 @@ static int pcmad_attach(struct comedi_device *dev, struct comedi_devconfig *it)
unsigned long iobase; unsigned long iobase;
iobase = it->options[0]; iobase = it->options[0];
printk("comedi%d: pcmad: 0x%04lx ", dev->minor, iobase); printk(KERN_INFO "comedi%d: pcmad: 0x%04lx ", dev->minor, iobase);
if (!request_region(iobase, PCMAD_SIZE, "pcmad")) { if (!request_region(iobase, PCMAD_SIZE, "pcmad")) {
printk("I/O port conflict\n"); printk("I/O port conflict\n");
return -EIO; return -EIO;
...@@ -166,11 +165,11 @@ static int pcmad_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -166,11 +165,11 @@ static int pcmad_attach(struct comedi_device *dev, struct comedi_devconfig *it)
static int pcmad_detach(struct comedi_device *dev) static int pcmad_detach(struct comedi_device *dev)
{ {
printk("comedi%d: pcmad: remove\n", dev->minor); printk(KERN_INFO "comedi%d: pcmad: remove\n", dev->minor);
if (dev->irq) { if (dev->irq)
free_irq(dev->irq, dev); free_irq(dev->irq, dev);
}
if (dev->iobase) if (dev->iobase)
release_region(dev->iobase, PCMAD_SIZE); release_region(dev->iobase, PCMAD_SIZE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment