mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 05:23:33 +08:00
First round of changes from debug of USB composite device (still has problems)
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4342 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -1660,6 +1660,7 @@ errout_with_mutex:
|
||||
int usbmsc_classobject(FAR void *handle,
|
||||
FAR struct usbdevclass_driver_s **classdev)
|
||||
{
|
||||
FAR struct usbmsc_alloc_s *alloc = (FAR struct usbmsc_alloc_s *)handle;
|
||||
int ret;
|
||||
|
||||
DEBUGASSERT(handle && classdev);
|
||||
@@ -1673,8 +1674,7 @@ int usbmsc_classobject(FAR void *handle,
|
||||
{
|
||||
/* On sucess, return an (typed) instance of the class instance */
|
||||
|
||||
*classdev = (FAR struct usbdevclass_driver_s *)
|
||||
&((FAR struct usbmsc_alloc_s *)handle)->dev;
|
||||
*classdev = &alloc->drvr.drvr;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user