提交 f9e61200 编写于 作者: L Laurent Pinchart 提交者: Felipe Balbi

usb: gadget: uvc: clarify comment about string descriptors

The comment that describes string descriptors allocation isn't clear,
fix it.
Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: NBhupesh Sharma <bhupesh.sharma@st.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 ddb5147c
...@@ -800,7 +800,10 @@ uvc_bind_config(struct usb_configuration *c, ...@@ -800,7 +800,10 @@ uvc_bind_config(struct usb_configuration *c,
uvc->desc.hs_streaming = hs_streaming; uvc->desc.hs_streaming = hs_streaming;
uvc->desc.ss_streaming = ss_streaming; uvc->desc.ss_streaming = ss_streaming;
/* Allocate string descriptor numbers. */ /* String descriptors are global, we only need to allocate string IDs
* for the first UVC function. UVC functions beyond the first (if any)
* will reuse the same IDs.
*/
if (uvc_en_us_strings[UVC_STRING_ASSOCIATION_IDX].id == 0) { if (uvc_en_us_strings[UVC_STRING_ASSOCIATION_IDX].id == 0) {
ret = usb_string_ids_tab(c->cdev, uvc_en_us_strings); ret = usb_string_ids_tab(c->cdev, uvc_en_us_strings);
if (ret) if (ret)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册