aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-plat.c
AgeCommit message (Collapse)AuthorFilesLines
2020-12-29usb: cdns3: Refactoring names in reusable codePawel Laszczak1-12/+13
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 <[email protected]> Tested-by: Aswath Govindraju <[email protected]> Signed-off-by: Peter Chen <[email protected]>
2020-12-29usb: cdns3: Moves reusable code to separate modulePawel Laszczak1-0/+2
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]>
2020-12-29usb: cdns3: Split core.c into cdns3-plat and core.c filePawel Laszczak1-0/+312
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]>