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

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

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



For aesthetics, add some whitespace to the subdevice init and rename
the (*insn_bits) 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 a512f530
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -1141,7 +1141,7 @@ static int das1800_di_rbits(struct comedi_device *dev,
	return insn->n;
}

static int das1800_do_wbits(struct comedi_device *dev,
static int das1800_do_insn_bits(struct comedi_device *dev,
				struct comedi_subdevice *s,
				struct comedi_insn *insn,
				unsigned int *data)
@@ -1396,14 +1396,14 @@ static int das1800_attach(struct comedi_device *dev,
	s->range_table = &range_digital;
	s->insn_bits = das1800_di_rbits;

	/* do */
	/* Digital Output subdevice */
	s = &dev->subdevices[3];
	s->type		= COMEDI_SUBD_DO;
	s->subdev_flags	= SDF_WRITABLE;
	s->n_chan	= board->do_n_chan;
	s->maxdata	= 1;
	s->range_table	= &range_digital;
	s->insn_bits = das1800_do_wbits;
	s->insn_bits	= das1800_do_insn_bits;

	das1800_cancel(dev, dev->read_subdev);