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

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

staging: comedi: rti802: 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 57450d90
Loading
Loading
Loading
Loading
+9 −10
Original line number Diff line number Diff line
@@ -109,8 +109,8 @@ static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it)
	if (ret)
		return ret;

	/* Analog Output subdevice */
	s = &dev->subdevices[0];
	/* ao subdevice */
	s->type		= COMEDI_SUBD_AO;
	s->subdev_flags	= SDF_WRITABLE;
	s->maxdata	= 0xfff;
@@ -121,8 +121,7 @@ static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it)

	for (i = 0; i < 8; i++) {
		devpriv->dac_coding[i] = (it->options[3 + 2 * i])
		    ? (dac_straight)
		    : (dac_2comp);
			? (dac_straight) : (dac_2comp);
		devpriv->range_type_list[i] = (it->options[2 + 2 * i])
			? &range_unipolar10 : &range_bipolar10;
	}