Signed-off-by: Rahul Bedarkar <rahulbedarkar89@xxxxxxxxx> --- drivers/usb/chipidea/ci_hdrc_imx.c | 3 ++- drivers/usb/chipidea/core.c | 9 +++++---- drivers/usb/chipidea/host.c | 3 ++- drivers/usb/chipidea/udc.c | 9 ++++++--- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c index bb5d976..4573cb9 100644 --- a/drivers/usb/chipidea/ci_hdrc_imx.c +++ b/drivers/usb/chipidea/ci_hdrc_imx.c @@ -53,7 +53,8 @@ static struct imx_usbmisc_data *usbmisc_get_init_data(struct device *dev) ret = of_parse_phandle_with_args(np, "fsl,usbmisc", "#index-cells", 0, &args); if (ret) { - dev_err(dev, "Failed to parse property fsl,usbmisc, errno %d\n", + dev_err(dev, + "Failed to parse property fsl,usbmisc, errno %d\n", ret); return ERR_PTR(ret); } diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index bfd08b6..0a221c9 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -184,7 +184,7 @@ static void ci_hdrc_enter_lpm(struct ci_hdrc *ci, bool enable) } else if (!enable && lpm) { hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm), 0); - /* + /* * The controller needs at least 1ms to reflect * PHY's status, the PHY also needs some time (less * than 1ms) to leave low power mode. @@ -596,9 +596,10 @@ static int ci_hdrc_probe(struct platform_device *pdev) ret = otg_set_peripheral(ci->transceiver->otg, &ci->gadget); /* - * If we implement all USB functions using chipidea drivers, - * it doesn't need to call above API, meanwhile, if we only - * use gadget function, calling above API is useless. + * If we implement all USB functions using chipidea + * drivers, it doesn't need to call above API, + * meanwhile, if we only use gadget function, calling + * above API is useless. */ if (ret && ret != -ENOTSUPP) goto destroy_phy; diff --git a/drivers/usb/chipidea/host.c b/drivers/usb/chipidea/host.c index 526cd77..3d0bf11 100644 --- a/drivers/usb/chipidea/host.c +++ b/drivers/usb/chipidea/host.c @@ -123,7 +123,8 @@ int ci_hdrc_host_init(struct ci_hdrc *ci) if (!hw_read(ci, CAP_DCCPARAMS, DCCPARAMS_HC)) return -ENXIO; - rdrv = devm_kzalloc(ci->dev, sizeof(struct ci_role_driver), GFP_KERNEL); + rdrv = devm_kzalloc(ci->dev, sizeof(struct ci_role_driver), + GFP_KERNEL); if (!rdrv) return -ENOMEM; diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 5e7d164..a54b517 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c @@ -784,7 +784,8 @@ static int _ep_queue(struct usb_ep *ep, struct usb_request *req, if (usb_endpoint_xfer_isoc(hwep->ep.desc) && hwreq->req.length > (1 + hwep->ep.mult) * hwep->ep.maxpacket) { - dev_err(hwep->ci->dev, "request length too big for isochronous\n"); + dev_err(hwep->ci->dev, + "request length too big for isochronous\n"); return -EMSGSIZE; } @@ -1368,7 +1369,8 @@ static int ep_set_halt(struct usb_ep *ep, int value) direction = hwep->dir; do { - retval |= hw_ep_set_halt(hwep->ci, hwep->num, hwep->dir, value); + retval |= hw_ep_set_halt(hwep->ci, hwep->num, hwep->dir, + value); if (!value) hwep->wedge = 0; @@ -1862,7 +1864,8 @@ int ci_hdrc_gadget_init(struct ci_hdrc *ci) if (!hw_read(ci, CAP_DCCPARAMS, DCCPARAMS_DC)) return -ENXIO; - rdrv = devm_kzalloc(ci->dev, sizeof(struct ci_role_driver), GFP_KERNEL); + rdrv = devm_kzalloc(ci->dev, sizeof(struct ci_role_driver), + GFP_KERNEL); if (!rdrv) return -ENOMEM; -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html