diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2018-11-29 12:52:46 +0300 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2018-12-07 18:31:45 +0300 |
commit | 0131162439508801b9f8a330fa731f04273c9337 (patch) | |
tree | 5d94343d01e2ce401774516cd7783d527f4b5941 /board/sunxi | |
parent | d648a50c0a27452a5439e7982b23b97c64820430 (diff) | |
download | u-boot-0131162439508801b9f8a330fa731f04273c9337.tar.xz |
dm: usb: create a new UCLASS ID for USB gadget devices
UCLASS_USB_DEV_GENERIC was meant for USB devices connected to host
controllers, not gadget devices.
Adding a new UCLASS for gadget devices alone.
Also move the generic DM code for USB gadgets in a separate file for
clarity.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Diffstat (limited to 'board/sunxi')
-rw-r--r-- | board/sunxi/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 64ccbc7245..9b36cc76de 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -663,7 +663,7 @@ int g_dnl_board_usb_cable_connected(void) struct phy phy; int ret; - ret = uclass_get_device(UCLASS_USB_DEV_GENERIC, 0, &dev); + ret = uclass_get_device(UCLASS_USB_GADGET_GENERIC, 0, &dev); if (ret) { pr_err("%s: Cannot find USB device\n", __func__); return ret; |