mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
usb: cdns3: Changed type of gadget_dev in cdns structure
Patch changes the type for gadget_dev pointer in cdns structure from pointer to cdns3_device structure to void pointer. This filed is in reusable code and after this change it will be used to point to both cdns3_device or cdnsp_device objects. 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>
This commit is contained in:
parent
0b490046d8
commit
ac5bca1427
@ -64,7 +64,7 @@ struct cdns3_platform_data {
|
|||||||
* @roles: array of supported roles for this controller
|
* @roles: array of supported roles for this controller
|
||||||
* @role: current role
|
* @role: current role
|
||||||
* @host_dev: the child host device pointer for cdns core
|
* @host_dev: the child host device pointer for cdns core
|
||||||
* @gadget_dev: the child gadget device pointer for cdns3 core
|
* @gadget_dev: the child gadget device pointer
|
||||||
* @usb2_phy: pointer to USB2 PHY
|
* @usb2_phy: pointer to USB2 PHY
|
||||||
* @usb3_phy: pointer to USB3 PHY
|
* @usb3_phy: pointer to USB3 PHY
|
||||||
* @mutex: the mutex for concurrent code at driver
|
* @mutex: the mutex for concurrent code at driver
|
||||||
@ -104,7 +104,7 @@ struct cdns {
|
|||||||
struct cdns_role_driver *roles[USB_ROLE_DEVICE + 1];
|
struct cdns_role_driver *roles[USB_ROLE_DEVICE + 1];
|
||||||
enum usb_role role;
|
enum usb_role role;
|
||||||
struct platform_device *host_dev;
|
struct platform_device *host_dev;
|
||||||
struct cdns3_device *gadget_dev;
|
void *gadget_dev;
|
||||||
struct phy *usb2_phy;
|
struct phy *usb2_phy;
|
||||||
struct phy *usb3_phy;
|
struct phy *usb3_phy;
|
||||||
/* mutext used in workqueue*/
|
/* mutext used in workqueue*/
|
||||||
|
Loading…
Reference in New Issue
Block a user