aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorAnurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>2019-05-10 12:37:27 +0530
committerFelipe Balbi <felipe.balbi@linux.intel.com>2019-06-18 11:58:30 +0300
commit4ed9890c4c44d2ead7b57ad65425e3fbe9b9d42a (patch)
treedbcbd5ff59ca057aa74eb6d9ebd21322b611b7e7 /drivers/usb/gadget
parentdoc: dt: bindings: usb: dwc3: Update entries for disabling U1 and U2 (diff)
downloadlinux-dev-4ed9890c4c44d2ead7b57ad65425e3fbe9b9d42a.tar.xz
linux-dev-4ed9890c4c44d2ead7b57ad65425e3fbe9b9d42a.zip
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: Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/composite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
index b8a15840b4ff..9118b42c70b6 100644
--- a/drivers/usb/gadget/composite.c
+++ b/drivers/usb/gadget/composite.c
@@ -653,7 +653,7 @@ static int bos_desc(struct usb_composite_dev *cdev)
/* Get Controller configuration */
if (cdev->gadget->ops->get_config_params) {
- cdev->gadget->ops->get_config_params(
+ cdev->gadget->ops->get_config_params(cdev->gadget,
&dcd_config_params);
} else {
dcd_config_params.bU1devExitLat =