Commit 52d83bde authored by Chihau Chau's avatar Chihau Chau Committed by Greg Kroah-Hartman

Staging: comedi: poc: fix coding style issues

This fixes a line over 80 characters and a brace warnings.
Signed-off-by: default avatarChihau Chau <chihau@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 60b341b7
...@@ -136,8 +136,8 @@ static int poc_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -136,8 +136,8 @@ static int poc_attach(struct comedi_device *dev, struct comedi_devconfig *it)
/* check if io addresses are available */ /* check if io addresses are available */
if (!request_region(iobase, iosize, "dac02")) { if (!request_region(iobase, iosize, "dac02")) {
printk printk
("I/O port conflict: failed to allocate ports 0x%lx to 0x%lx\n", ("I/O port conflict: failed to allocate ports 0x%lx to "
iobase, iobase + iosize - 1); "0x%lx\n", iobase, iobase + iosize - 1);
return -EIO; return -EIO;
} }
dev->iobase = iobase; dev->iobase = iobase;
...@@ -156,9 +156,8 @@ static int poc_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -156,9 +156,8 @@ static int poc_attach(struct comedi_device *dev, struct comedi_devconfig *it)
s->insn_write = this_board->winsn; s->insn_write = this_board->winsn;
s->insn_read = this_board->rinsn; s->insn_read = this_board->rinsn;
s->insn_bits = this_board->insnbits; s->insn_bits = this_board->insnbits;
if (s->type == COMEDI_SUBD_AO || s->type == COMEDI_SUBD_DO) { if (s->type == COMEDI_SUBD_AO || s->type == COMEDI_SUBD_DO)
s->subdev_flags = SDF_WRITABLE; s->subdev_flags = SDF_WRITABLE;
}
return 0; return 0;
} }
......
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