mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Patch change the functions and objects names in reusable code. The reusable code includes core.c, core.h, drd.c and drd.h files. It also changes the names of all references to these functions and objects in other cdns3 files. There are a lot of changes, but all changes are very trivial. The reason of this patch is to avoid of mixing prefix cdns3 and cdnsp in in cdnsp driver what could introduce some confusion in understanding of cdnsp driver. This patch assumes to use three different prefixes in Cadence USB drivers: cdns: for common reusable code cdnsp: for names related only with cdnsp driver cdns3: for names related only with cdns3 driver Signed-off-by: Pawel Laszczak <pawell@cadence.com> Tested-by: Aswath Govindraju <a-govindraju@ti.com> Signed-off-by: Peter Chen <peter.chen@nxp.com>
33 lines
672 B
C
33 lines
672 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Cadence USBSS DRD Driver - Host Export APIs
|
|
*
|
|
* Copyright (C) 2017-2018 NXP
|
|
*
|
|
* Authors: Peter Chen <peter.chen@nxp.com>
|
|
*/
|
|
#ifndef __LINUX_CDNS3_HOST_EXPORT
|
|
#define __LINUX_CDNS3_HOST_EXPORT
|
|
|
|
struct usb_hcd;
|
|
#ifdef CONFIG_USB_CDNS3_HOST
|
|
|
|
int cdns_host_init(struct cdns *cdns);
|
|
int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd);
|
|
|
|
#else
|
|
|
|
static inline int cdns_host_init(struct cdns *cdns)
|
|
{
|
|
return -ENXIO;
|
|
}
|
|
|
|
static inline void cdns_host_exit(struct cdns *cdns) { }
|
|
static inline int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#endif /* CONFIG_USB_CDNS3_HOST */
|
|
|
|
#endif /* __LINUX_CDNS3_HOST_EXPORT */
|