From 5e689dfe1555c1f91572d2da9229ad962fb4dca2 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Mon, 13 Nov 2023 19:50:04 +0800 Subject: [PATCH] fix class api name --- class/hub/usbh_hub.c | 2 +- class/video/usbh_video.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/class/hub/usbh_hub.c b/class/hub/usbh_hub.c index 8c084893..930a9ffd 100644 --- a/class/hub/usbh_hub.c +++ b/class/hub/usbh_hub.c @@ -313,7 +313,7 @@ static int usbh_hub_connect(struct usbh_hubport *hport, uint8_t intf) struct usbh_hub *hub = usbh_hub_class_alloc(); if (hub == NULL) { - USB_LOG_ERR("Fail to alloc cdc_acm_class\r\n"); + USB_LOG_ERR("Fail to alloc hub_class\r\n"); return -ENOMEM; } diff --git a/class/video/usbh_video.h b/class/video/usbh_video.h index fe44bf77..3357c14c 100644 --- a/class/video/usbh_video.h +++ b/class/video/usbh_video.h @@ -54,8 +54,8 @@ struct usbh_video { extern "C" { #endif -int usbh_video_get_cur(struct usbh_video *video_class, uint8_t request, uint8_t intf, uint8_t entity_id, uint8_t cs, uint8_t *buf, uint16_t len); -int usbh_video_set_cur(struct usbh_video *video_class, uint8_t request, uint8_t intf, uint8_t entity_id, uint8_t cs, uint8_t *buf, uint16_t len); +int usbh_video_get(struct usbh_video *video_class, uint8_t request, uint8_t intf, uint8_t entity_id, uint8_t cs, uint8_t *buf, uint16_t len); +int usbh_video_set(struct usbh_video *video_class, uint8_t request, uint8_t intf, uint8_t entity_id, uint8_t cs, uint8_t *buf, uint16_t len); int usbh_video_open(struct usbh_video *video_class, uint8_t format_type,