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

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

staging: comedi: usbdux: pass comedi_device pointer to usbdux_alloc_usb_buffers()



For aesthetic reasons, pass the comedi_device pointer to this function
instead of the private data pointer.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fb908568
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1729,8 +1729,9 @@ static int usbdux_pwm_config(struct comedi_device *dev,
/* end of PWM */
/*****************************************************************/

static int usbdux_alloc_usb_buffers(struct usbdux_private *devpriv)
static int usbdux_alloc_usb_buffers(struct comedi_device *dev)
{
	struct usbdux_private *devpriv = dev->private;
	struct urb *urb;
	int i;

@@ -1909,7 +1910,7 @@ static int usbdux_auto_attach(struct comedi_device *dev,
		devpriv->num_out_buffers = NUMOFOUTBUFFERSFULL;
	}

	ret = usbdux_alloc_usb_buffers(devpriv);
	ret = usbdux_alloc_usb_buffers(dev);
	if (ret)
		return ret;