Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 646b55ee authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: dmm32at: tidy up subdevice initialization



For aesthetics, add some whitespace to the subdevice initialization.

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 593ea59d
Loading
Loading
Loading
Loading
+28 −30
Original line number Diff line number Diff line
@@ -693,10 +693,9 @@ static int dmm32at_attach(struct comedi_device *dev,
	if (ret)
		return ret;

	/* Analog Input subdevice */
	s = &dev->subdevices[0];
	/* analog input subdevice */
	s->type		= COMEDI_SUBD_AI;
	/* we support single-ended (ground) and differential */
	s->subdev_flags	= SDF_READABLE | SDF_GROUND | SDF_DIFF;
	s->n_chan	= 32;
	s->maxdata	= 0xffff;
@@ -705,14 +704,14 @@ static int dmm32at_attach(struct comedi_device *dev,
	if (dev->irq) {
		dev->read_subdev = s;
		s->subdev_flags	|= SDF_CMD_READ;
		s->len_chanlist = 32;
		s->len_chanlist	= s->n_chan;
		s->do_cmd	= dmm32at_ai_cmd;
		s->do_cmdtest	= dmm32at_ai_cmdtest;
		s->cancel	= dmm32at_ai_cancel;
	}

	/* Analog Output subdevice */
	s = &dev->subdevices[1];
	/* analog output subdevice */
	s->type		= COMEDI_SUBD_AO;
	s->subdev_flags	= SDF_WRITABLE;
	s->n_chan	= 4;
@@ -725,13 +724,12 @@ static int dmm32at_attach(struct comedi_device *dev,
	if (ret)
		return ret;

	/* Digital I/O subdevice */
	s = &dev->subdevices[2];
	/* digital i/o subdevice */
	s->type		= COMEDI_SUBD_DIO;
	s->subdev_flags	= SDF_READABLE | SDF_WRITABLE;
	s->n_chan	= 24;
	s->maxdata	= 1;
	s->state = 0;
	s->range_table	= &range_digital;
	s->insn_bits	= dmm32at_dio_insn_bits;
	s->insn_config	= dmm32at_dio_insn_config;