Commit 4ed9890c authored by Anurag Kumar Vulisha's avatar Anurag Kumar Vulisha Committed by Felipe Balbi

usb: gadget: send usb_gadget as an argument in get_config_params

Passing struct usb_gadget * as an extra argument in get_config_params
makes gadget drivers to easily update the U1DevExitLat & U2DevExitLat
values based on the values passed from the device tree. This patch
does the same
Signed-off-by: default avatarAnurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 34cc761b
...@@ -653,7 +653,7 @@ static int bos_desc(struct usb_composite_dev *cdev) ...@@ -653,7 +653,7 @@ static int bos_desc(struct usb_composite_dev *cdev)
/* Get Controller configuration */ /* Get Controller configuration */
if (cdev->gadget->ops->get_config_params) { if (cdev->gadget->ops->get_config_params) {
cdev->gadget->ops->get_config_params( cdev->gadget->ops->get_config_params(cdev->gadget,
&dcd_config_params); &dcd_config_params);
} else { } else {
dcd_config_params.bU1devExitLat = dcd_config_params.bU1devExitLat =
......
...@@ -310,7 +310,8 @@ struct usb_gadget_ops { ...@@ -310,7 +310,8 @@ struct usb_gadget_ops {
int (*pullup) (struct usb_gadget *, int is_on); int (*pullup) (struct usb_gadget *, int is_on);
int (*ioctl)(struct usb_gadget *, int (*ioctl)(struct usb_gadget *,
unsigned code, unsigned long param); unsigned code, unsigned long param);
void (*get_config_params)(struct usb_dcd_config_params *); void (*get_config_params)(struct usb_gadget *,
struct usb_dcd_config_params *);
int (*udc_start)(struct usb_gadget *, int (*udc_start)(struct usb_gadget *,
struct usb_gadget_driver *); struct usb_gadget_driver *);
int (*udc_stop)(struct usb_gadget *); int (*udc_stop)(struct usb_gadget *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment