diff options
| author | Pawel Laszczak <[email protected]> | 2020-12-07 10:32:19 +0000 |
|---|---|---|
| committer | Peter Chen <[email protected]> | 2020-12-29 04:36:13 +0000 |
| commit | f738957277bad824b422399a214b630d7832f884 (patch) | |
| tree | 11744810ab909b1aace22c47097847abd0ccdad9 /drivers/usb/cdns3/core.h | |
| parent | usb: cdns3: Add support for DRD CDNSP (diff) | |
| download | kernel-f738957277bad824b422399a214b630d7832f884.tar.gz kernel-f738957277bad824b422399a214b630d7832f884.zip | |
usb: cdns3: Split core.c into cdns3-plat and core.c file
Patch splits file core.c into core.c containing the common reusable code
and cnd3-plat.c containing device platform specific code. These changes
are required to make possible reuse DRD part of CDNS3 driver in CDNSP
driver.
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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/cdns3/core.h b/drivers/usb/cdns3/core.h index 0d87871499ea..c97c2bb1582f 100644 --- a/drivers/usb/cdns3/core.h +++ b/drivers/usb/cdns3/core.h @@ -118,5 +118,11 @@ struct cdns3 { }; int cdns3_hw_role_switch(struct cdns3 *cdns); +int cdns3_init(struct cdns3 *cdns); +int cdns3_remove(struct cdns3 *cdns); +#ifdef CONFIG_PM_SLEEP +int cdns3_resume(struct cdns3 *cdns, u8 set_active); +int cdns3_suspend(struct cdns3 *cdns); +#endif /* CONFIG_PM_SLEEP */ #endif /* __LINUX_CDNS3_CORE_H */ |
