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

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

staging: comedi: addi_apci_3120: tidy up digital output subdevice init



For aesthetics, add some white space to the digital output subdevice
initialization.

Remove the subdev_flags SDF_GROUND and SDF_COMMON. These only apply to
analog subdevices. Also remove the unnecessary SDF_READABLE subdev_flag.

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 dc842931
Loading
Loading
Loading
Loading
+7 −8
Original line number Original line Diff line number Diff line
@@ -213,11 +213,10 @@ static int apci3120_auto_attach(struct comedi_device *dev,
	s->range_table	= &range_digital;
	s->range_table	= &range_digital;
	s->insn_bits	= apci3120_di_insn_bits;
	s->insn_bits	= apci3120_di_insn_bits;


	/*  Allocate and Initialise DO Subdevice Structures */
	/* Digital Output subdevice */
	s = &dev->subdevices[3];
	s = &dev->subdevices[3];
	s->type		= COMEDI_SUBD_DO;
	s->type		= COMEDI_SUBD_DO;
	s->subdev_flags =
	s->subdev_flags	= SDF_WRITEABLE;
		SDF_READABLE | SDF_WRITEABLE | SDF_GROUND | SDF_COMMON;
	s->n_chan	= 4;
	s->n_chan	= 4;
	s->maxdata	= 1;
	s->maxdata	= 1;
	s->range_table	= &range_digital;
	s->range_table	= &range_digital;