diff options
author | Marek Vasut | 2023-09-01 11:49:54 +0200 |
---|---|---|
committer | Marek Vasut | 2023-09-15 23:38:02 +0200 |
commit | f032260c7c336cf88c1914286fd42a1588080db3 (patch) | |
tree | b6422c60b0db6331eed2c0c3bbf791d185304b71 /include | |
parent | 76dd459487444fab1aabee848053df9d993efa1d (diff) |
cmd: ums: Use plain udevice for UDC controller interaction
Convert to plain udevice interaction with UDC controller
device, avoid the use of UDC uclass dev_array .
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # on khadas vim3
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb_mass_storage.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/usb_mass_storage.h b/include/usb_mass_storage.h index 08ccc97cf22..83ab93b530d 100644 --- a/include/usb_mass_storage.h +++ b/include/usb_mass_storage.h @@ -25,7 +25,7 @@ struct ums { struct blk_desc block_dev; }; -int fsg_init(struct ums *ums_devs, int count, unsigned int controller_idx); +int fsg_init(struct ums *ums_devs, int count, struct udevice *udc); void fsg_cleanup(void); int fsg_main_thread(void *); int fsg_add(struct usb_configuration *c); |