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

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

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



Add some whitespace to the subdevice init and rename the support
function.

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 8500b75c
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -357,7 +357,7 @@ static int das16m1_di_insn_bits(struct comedi_device *dev,
	return insn->n;
}

static int das16m1_do_wbits(struct comedi_device *dev,
static int das16m1_do_insn_bits(struct comedi_device *dev,
				struct comedi_subdevice *s,
				struct comedi_insn *insn,
				unsigned int *data)
@@ -580,14 +580,14 @@ static int das16m1_attach(struct comedi_device *dev,
	s->range_table	= &range_digital;
	s->insn_bits	= das16m1_di_insn_bits;

	/* Digital Output subdevice */
	s = &dev->subdevices[2];
	/* do */
	s->type		= COMEDI_SUBD_DO;
	s->subdev_flags	= SDF_WRITABLE;
	s->n_chan	= 4;
	s->maxdata	= 1;
	s->range_table	= &range_digital;
	s->insn_bits = das16m1_do_wbits;
	s->insn_bits	= das16m1_do_insn_bits;

	s = &dev->subdevices[3];
	/* 8255 */