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

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

staging: comedi: remove the "Allocate the subdevice..." comments



These comments are redundant. The function name 'comedi_alloc_subdevices'
provides this information.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <ian@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0e4039f3
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1686,7 +1686,6 @@ static int i_ADDI_Attach(struct comedi_device *dev, struct comedi_devconfig *it)
		devpriv->s_BoardInfos.ui_Address = io_addr[2];
#endif
	} else {
		/* Update-0.7.57->0.7.68dev->n_subdevices = 7; */
		n_subdevices = 7;
		ret = comedi_alloc_subdevices(dev, n_subdevices);
		if (ret < 0)
+0 −1
Original line number Diff line number Diff line
@@ -62,7 +62,6 @@ void i_ADDI_AttachPCI1710(struct comedi_device *dev)
	int ret = 0;
	int n_subdevices = 9;

	/* Update-0.7.57->0.7.68dev->n_subdevices = 9; */
	ret = comedi_alloc_subdevices(dev, n_subdevices);
	if (ret < 0)
		return;
+0 −4
Original line number Diff line number Diff line
@@ -267,10 +267,6 @@ static int adq12b_attach(struct comedi_device *dev, struct comedi_devconfig *it)
	devpriv->last_channel = -1;
	devpriv->last_range = -1;

/*
 * Allocate the subdevice structures.  alloc_subdevice() is a
 * convenient macro defined in comedidev.h.
 */
	if (comedi_alloc_subdevices(dev, 3) < 0)
		return -ENOMEM;

+0 −1
Original line number Diff line number Diff line
@@ -1379,7 +1379,6 @@ static int pci224_attach_common(struct comedi_device *dev,
	outw(devpriv->daccon | PCI224_DACCON_FIFORESET,
	     dev->iobase + PCI224_DACCON);

	/* Allocate subdevices.  There is only one!  */
	ret = comedi_alloc_subdevices(dev, 1);
	if (ret < 0)
		return ret;
+1 −4
Original line number Diff line number Diff line
@@ -2839,10 +2839,7 @@ static int pci230_attach_common(struct comedi_device *dev,
		dev_dbg(dev->class_dev, "registered irq %u\n",
			devpriv->pci_dev->irq);
	}
	/*
	 * Allocate the subdevice structures.  alloc_subdevice() is a
	 * convenient macro defined in comedidev.h.
	 */

	if (comedi_alloc_subdevices(dev, 3) < 0)
		return -ENOMEM;
	s = dev->subdevices + 0;
Loading