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

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

staging: comedi: pcmda12: tidy up subdevice init



For aesthetic reasons. add some whitespace to the subdevice init
and reorder it a bit.

Remove the 's->private = NULL', it was kzalloc'ed by the core and
will already be NULL.

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 d6b354d2
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
@@ -167,12 +167,11 @@ static int pcmda12_attach(struct comedi_device *dev,
		return ret;

	s = &dev->subdevices[0];
	s->private = NULL;
	s->maxdata = 0x0fff;
	s->range_table = &pcmda12_ranges;
	s->type		= COMEDI_SUBD_AO;
	s->subdev_flags	= SDF_READABLE | SDF_WRITABLE;
	s->n_chan	= CHANS;
	s->maxdata	= 0x0fff;
	s->range_table	= &pcmda12_ranges;
	s->insn_write	= &ao_winsn;
	s->insn_read	= &ao_rinsn;