remove device mount and unmount callback

This commit is contained in:
sakimisu
2022-11-21 21:59:37 +08:00
parent 9291c1459c
commit 61e82e0eeb
4 changed files with 1 additions and 22 deletions

View File

@@ -511,7 +511,6 @@ static void usbh_hub_events(struct usbh_hub *hub)
} }
USB_LOG_INFO("Device on Hub %u, Port %u disconnected\r\n", hub->index, port + 1); USB_LOG_INFO("Device on Hub %u, Port %u disconnected\r\n", hub->index, port + 1);
usbh_device_unmount_done_callback(child);
child->config.config_desc.bNumInterfaces = 0; child->config.config_desc.bNumInterfaces = 0;
} }
} }

View File

@@ -623,7 +623,6 @@ int usbh_enumerate(struct usbh_hubport *hport)
} }
} }
usbh_device_mount_done_callback(hport);
errout: errout:
if (ret < 0) { if (ret < 0) {
usbh_hport_deactivate_ep0(hport); usbh_hport_deactivate_ep0(hport);
@@ -794,12 +793,4 @@ int lsusb(int argc, char **argv)
} }
return 0; return 0;
} }
__WEAK void usbh_device_mount_done_callback(struct usbh_hubport *hport)
{
}
__WEAK void usbh_device_unmount_done_callback(struct usbh_hubport *hport)
{
}

View File

@@ -181,9 +181,6 @@ int usbh_initialize(void);
struct usbh_hubport *usbh_find_hubport(uint8_t dev_addr); struct usbh_hubport *usbh_find_hubport(uint8_t dev_addr);
void *usbh_find_class_instance(const char *devname); void *usbh_find_class_instance(const char *devname);
void usbh_device_mount_done_callback(struct usbh_hubport *hport);
void usbh_device_unmount_done_callback(struct usbh_hubport *hport);
int lsusb(int argc, char **argv); int lsusb(int argc, char **argv);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@@ -241,14 +241,6 @@ int video_test(void)
return ret; return ret;
} }
void usbh_device_mount_done_callback(struct usbh_hubport *hport)
{
}
void usbh_device_unmount_done_callback(struct usbh_hubport *hport)
{
}
static void usbh_class_test_thread(void *argument) static void usbh_class_test_thread(void *argument)
{ {
while (1) { while (1) {