diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2024-02-28 17:05:16 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-02-29 09:10:38 +0100 |
commit | 8489b552f0718cced5a1c858e0a824d01ddcbfc3 (patch) | |
tree | bb0fca6ab3405ab58a1066d9b439520e153307fb /include/linux | |
parent | 5ec36ba8cad4afbe225548f6e843d28dffc6136a (diff) | |
download | barebox-8489b552f0718cced5a1c858e0a824d01ddcbfc3.tar.gz barebox-8489b552f0718cced5a1c858e0a824d01ddcbfc3.tar.xz |
usb: otg: maintain list of USB OTG controllers
We register devices for OTG controllers only to associate a .mode device
parameter with them. Follow-up commits will need to refer to previously
registered OTG controllers, so let's register a bus type for them and
use it to maintain a list of controllers.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20240228160518.1589193-4-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/usb/usb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/usb/usb.h b/include/linux/usb/usb.h index ffeceec88f..a611d19b4a 100644 --- a/include/linux/usb/usb.h +++ b/include/linux/usb/usb.h @@ -480,6 +480,8 @@ enum usb_device_speed of_usb_get_maximum_speed(struct device_node *np, int usb_register_otg_device(struct device *parent, int (*set_mode)(void *ctx, enum usb_dr_mode mode), void *ctx); +extern struct bus_type otg_bus_type; + extern struct list_head usb_device_list; bool usb_hub_is_root_hub(struct usb_device *hdev); |