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

staging: comedi: mf6x4: tidy up subdevice init



For aesthetics, add some whitespace to the subdevice initialization.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 21cf4eed
Loading
Loading
Loading
Loading
+30 −30
Original line number Diff line number Diff line
@@ -230,21 +230,21 @@ static int mf6x4_auto_attach(struct comedi_device *dev, unsigned long context)
	if (ret)
		return ret;

	/* ADC */
	/* Analog Input subdevice */
	s = &dev->subdevices[0];
	s->type		= COMEDI_SUBD_AI;
	s->subdev_flags	= SDF_READABLE | SDF_GROUND;
	s->n_chan	= 8;
	s->maxdata = 0x3fff; /* 14 bits ADC */
	s->maxdata	= 0x3fff;
	s->range_table	= &range_bipolar10;
	s->insn_read	= mf6x4_ai_insn_read;

	/* DAC */
	/* Analog Output subdevice */
	s = &dev->subdevices[1];
	s->type		= COMEDI_SUBD_AO;
	s->subdev_flags	= SDF_WRITABLE;
	s->n_chan	= 8;
	s->maxdata = 0x3fff; /* 14 bits DAC */
	s->maxdata	= 0x3fff;
	s->range_table	= &range_bipolar10;
	s->insn_write	= mf6x4_ao_insn_write;

@@ -252,7 +252,7 @@ static int mf6x4_auto_attach(struct comedi_device *dev, unsigned long context)
	if (ret)
		return ret;

	/* DIN */
	/* Digital Input subdevice */
	s = &dev->subdevices[2];
	s->type		= COMEDI_SUBD_DI;
	s->subdev_flags	= SDF_READABLE;
@@ -261,7 +261,7 @@ static int mf6x4_auto_attach(struct comedi_device *dev, unsigned long context)
	s->range_table	= &range_digital;
	s->insn_bits	= mf6x4_di_insn_bits;

	/* DOUT */
	/* Digital Output subdevice */
	s = &dev->subdevices[3];
	s->type		= COMEDI_SUBD_DO;
	s->subdev_flags	= SDF_WRITABLE;