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

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

staging: comedi: adq12b: tidy up the subdevice init



For aesthetics, add some whitespace to 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 11c4e2db
Loading
Loading
Loading
Loading
+25 −27
Original line number Diff line number Diff line
@@ -220,8 +220,8 @@ static int adq12b_attach(struct comedi_device *dev, struct comedi_devconfig *it)
	if (ret)
		return ret;

	/* Analog Input subdevice */
	s = &dev->subdevices[0];
	/* analog input subdevice */
	s->type		= COMEDI_SUBD_AI;
	if (it->options[2]) {
		s->subdev_flags	= SDF_READABLE | SDF_DIFF;
@@ -230,15 +230,13 @@ static int adq12b_attach(struct comedi_device *dev, struct comedi_devconfig *it)
		s->subdev_flags	= SDF_READABLE | SDF_GROUND;
		s->n_chan	= 16;
	}

	s->maxdata	= 0xfff;
	s->range_table	= it->options[1] ? &range_adq12b_ai_unipolar
					 : &range_adq12b_ai_bipolar;

	s->maxdata = 0xfff;
	s->insn_read	= adq12b_ai_insn_read;

	/* Digital Input subdevice */
	s = &dev->subdevices[1];
	/* digital input subdevice */
	s->type		= COMEDI_SUBD_DI;
	s->subdev_flags	= SDF_READABLE;
	s->n_chan	= 5;
@@ -246,8 +244,8 @@ static int adq12b_attach(struct comedi_device *dev, struct comedi_devconfig *it)
	s->range_table	= &range_digital;
	s->insn_bits	= adq12b_di_insn_bits;

	/* Digital Output subdevice */
	s = &dev->subdevices[2];
	/* digital output subdevice */
	s->type		= COMEDI_SUBD_DO;
	s->subdev_flags	= SDF_WRITABLE;
	s->n_chan	= 8;