Commit 88f0b62b authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: comedi_parport: tidy up parport_attach()

Add some whitespace to tidy up the subdevice init.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7e6f185e
...@@ -267,6 +267,7 @@ static int parport_attach(struct comedi_device *dev, ...@@ -267,6 +267,7 @@ static int parport_attach(struct comedi_device *dev,
if (ret) if (ret)
return ret; return ret;
/* Digial I/O subdevice - Parallel port DATA register */
s = &dev->subdevices[0]; s = &dev->subdevices[0];
s->type = COMEDI_SUBD_DIO; s->type = COMEDI_SUBD_DIO;
s->subdev_flags = SDF_READABLE | SDF_WRITABLE; s->subdev_flags = SDF_READABLE | SDF_WRITABLE;
...@@ -276,6 +277,7 @@ static int parport_attach(struct comedi_device *dev, ...@@ -276,6 +277,7 @@ static int parport_attach(struct comedi_device *dev,
s->insn_bits = parport_data_reg_insn_bits; s->insn_bits = parport_data_reg_insn_bits;
s->insn_config = parport_data_reg_insn_config; s->insn_config = parport_data_reg_insn_config;
/* Digial Input subdevice - Parallel port STATUS register */
s = &dev->subdevices[1]; s = &dev->subdevices[1];
s->type = COMEDI_SUBD_DI; s->type = COMEDI_SUBD_DI;
s->subdev_flags = SDF_READABLE; s->subdev_flags = SDF_READABLE;
...@@ -284,6 +286,7 @@ static int parport_attach(struct comedi_device *dev, ...@@ -284,6 +286,7 @@ static int parport_attach(struct comedi_device *dev,
s->range_table = &range_digital; s->range_table = &range_digital;
s->insn_bits = parport_status_reg_insn_bits; s->insn_bits = parport_status_reg_insn_bits;
/* Digial Output subdevice - Parallel port CONTROL register */
s = &dev->subdevices[2]; s = &dev->subdevices[2];
s->type = COMEDI_SUBD_DO; s->type = COMEDI_SUBD_DO;
s->subdev_flags = SDF_WRITABLE; s->subdev_flags = SDF_WRITABLE;
...@@ -293,6 +296,7 @@ static int parport_attach(struct comedi_device *dev, ...@@ -293,6 +296,7 @@ static int parport_attach(struct comedi_device *dev,
s->insn_bits = parport_ctrl_reg_insn_bits; s->insn_bits = parport_ctrl_reg_insn_bits;
if (dev->irq) { if (dev->irq) {
/* Digial Input subdevice - Interrupt support */
s = &dev->subdevices[3]; s = &dev->subdevices[3];
dev->read_subdev = s; dev->read_subdev = s;
s->type = COMEDI_SUBD_DI; s->type = COMEDI_SUBD_DI;
......
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