diff options
| author | Pawel Laszczak <[email protected]> | 2020-12-07 10:32:20 +0000 |
|---|---|---|
| committer | Peter Chen <[email protected]> | 2020-12-29 04:36:13 +0000 |
| commit | 394c3a144de89e994c8a2c5ba5dc64fa4e5aa870 (patch) | |
| tree | 392480a1bd5bbaf285c68735f3251a50be2e4e03 /drivers/usb/cdns3/core.h | |
| parent | usb: cdns3: Split core.c into cdns3-plat and core.c file (diff) | |
| download | kernel-394c3a144de89e994c8a2c5ba5dc64fa4e5aa870.tar.gz kernel-394c3a144de89e994c8a2c5ba5dc64fa4e5aa870.zip | |
usb: cdns3: Moves reusable code to separate module
Patch moves common reusable code used by cdns3 and cdnsp driver
to cdns-usb-common library. This library include core.c, drd.c
and host.c files.
Signed-off-by: Pawel Laszczak <[email protected]>
Tested-by: Aswath Govindraju <[email protected]>
Signed-off-by: Peter Chen <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/core.h')
| -rw-r--r-- | drivers/usb/cdns3/core.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/cdns3/core.h b/drivers/usb/cdns3/core.h index c97c2bb1582f..2fe482dee4d7 100644 --- a/drivers/usb/cdns3/core.h +++ b/drivers/usb/cdns3/core.h @@ -78,6 +78,7 @@ struct cdns3_platform_data { * @pdata: platform data from glue layer * @lock: spinlock structure * @xhci_plat_data: xhci private data structure pointer + * @gadget_init: pointer to gadget initialization function */ struct cdns3 { struct device *dev; @@ -115,6 +116,8 @@ struct cdns3 { struct cdns3_platform_data *pdata; spinlock_t lock; struct xhci_plat_priv *xhci_plat_data; + + int (*gadget_init)(struct cdns3 *cdns); }; int cdns3_hw_role_switch(struct cdns3 *cdns); |
