Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Pawel Laszczak and committed by
Peter Chen
ac5bca14 0b490046

+2 -2
+2 -2
drivers/usb/cdns3/core.h
··· 64 64 * @roles: array of supported roles for this controller 65 65 * @role: current role 66 66 * @host_dev: the child host device pointer for cdns core 67 - * @gadget_dev: the child gadget device pointer for cdns3 core 67 + * @gadget_dev: the child gadget device pointer 68 68 * @usb2_phy: pointer to USB2 PHY 69 69 * @usb3_phy: pointer to USB3 PHY 70 70 * @mutex: the mutex for concurrent code at driver ··· 104 104 struct cdns_role_driver *roles[USB_ROLE_DEVICE + 1]; 105 105 enum usb_role role; 106 106 struct platform_device *host_dev; 107 - struct cdns3_device *gadget_dev; 107 + void *gadget_dev; 108 108 struct phy *usb2_phy; 109 109 struct phy *usb3_phy; 110 110 /* mutext used in workqueue*/