diff options
author | Pawel Laszczak <pawell@cadence.com> | 2020-12-07 13:32:21 +0300 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2020-12-29 07:36:13 +0300 |
commit | 0b490046d8d7c035177ca4f5380f0c3275c4697d (patch) | |
tree | 07f2674ad77bdb8eb38393e273a4b881d96053bd /drivers/usb/cdns3/gadget-export.h | |
parent | 394c3a144de89e994c8a2c5ba5dc64fa4e5aa870 (diff) | |
download | linux-0b490046d8d7c035177ca4f5380f0c3275c4697d.tar.xz |
usb: cdns3: Refactoring names in reusable code
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>
Diffstat (limited to 'drivers/usb/cdns3/gadget-export.h')
-rw-r--r-- | drivers/usb/cdns3/gadget-export.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/cdns3/gadget-export.h b/drivers/usb/cdns3/gadget-export.h index 702c5a267a92..0f7cb2a92c9a 100644 --- a/drivers/usb/cdns3/gadget-export.h +++ b/drivers/usb/cdns3/gadget-export.h @@ -12,10 +12,10 @@ #ifdef CONFIG_USB_CDNS3_GADGET -int cdns3_gadget_init(struct cdns3 *cdns); +int cdns3_gadget_init(struct cdns *cdns); #else -static inline int cdns3_gadget_init(struct cdns3 *cdns) +static inline int cdns3_gadget_init(struct cdns *cdns) { return -ENXIO; } |