]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: gadget: udc: Fix duplicate uclass name
authorZixun LI <admin@hifiphile.com>
Fri, 2 Aug 2024 09:28:11 +0000 (11:28 +0200)
committerMattijs Korpershoek <mkorpershoek@baylibre.com>
Tue, 20 Aug 2024 07:36:36 +0000 (09:36 +0200)
commit73f5b54a589cb6ff97aaca55e7c97d68b43997ee
tree8f5dee32ec5d5a7830bafb0ce001757fe4004edc
parentd6376f7ed823569acd8bb0fdfa501c040cfec36f
usb: gadget: udc: Fix duplicate uclass name

Currently both USB host uclass and USB gadget uclass are using the same
name "usb" which break uclass functions like uclass_get_by_name().

Rename the uclass to "usb_gadget" to fix, also makes bind/unbind by class
index (or sequence) working.

This breaks the capacity of using "usb" as DT alias sequence numbering
which needs a fix afterwards.

Signed-off-by: Zixun LI <admin@hifiphile.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/all/20240802092820.917450-1-admin@hifiphile.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
drivers/usb/gadget/udc/udc-uclass.c