usbdev: Split usbdev descriptor information

The class device only handles descriptor information specific to the class,
and shared descriptor information is passed through parameters and
handled by the composite driver.

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
zhangyuan21
2023-08-24 19:30:54 +08:00
committed by Xiang Xiao
parent b5bccbb70e
commit 0efd4d0e12
28 changed files with 367 additions and 495 deletions

View File

@@ -265,7 +265,7 @@ void *board_composite_connect(int port, int configid)
n++;
#endif
return composite_initialize(n, dev);
return composite_initialize(composite_getdevdescs(), dev, n);
}
else
{