[PATCH v2 08/25] docs/zh_CN: Add functionfs-desc.rst translation

Updated
From:macrofun <baikefan@leap-io-kernel.com>
Date:
Message-ID:<21a0c15d420bddd6ca24c97a2b2769c840276e44.1763897036.git.baikefan@leap-io-kernel.com>
Patch:v2 · 8/25
Language:zh_CN
Patch-ID:a1e860e55b33c06ef071a0aee773b3b8064565d8
Files:Documentation/translations/zh_CN/usb/functionfs-desc.rst

Patch content 1 changed file

Translate .../usb/functionfs-desc.rst into Chinese. Update the translation through commit c26cee817f8b("usb: gadget: f_fs: add capability for dfu functional descriptor") Signed-off-by: macrofun <baikefan@leap-io-kernel.com>--- .../zh_CN/usb/functionfs-desc.rst             | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/translations/zh_CN/usb/functionfs-desc.rst diff --git a/Documentation/translations/zh_CN/usb/functionfs-desc.rst b/Documentation/translations/zh_CN/usb/functionfs-desc.rstnew file mode 100644index 000000000000..cc6d94e5452f--- /dev/null+++ b/Documentation/translations/zh_CN/usb/functionfs-desc.rst@@ -0,0 +1,43 @@+.. SPDX-License-Identifier: GPL-2.0+.. include:: ../disclaimer-zh_CN.rst++:Original: Documentation/usb/functionfs-desc.rst+:翻译:++ 白钶凡 Kefan Bai <baikefan@leap-io-kernel.com>++:校译:++++=====================+FunctionFS 描述符+=====================++以下介绍了可以写入FFS gadget的部分描述符。+设备和配置描述符由复合gadget处理,用户不需要向FFS gadget写入这些描述符。++描述符写入FFS gadget的ep0文件中,紧跟描述符头之后。++.. kernel-doc:: include/uapi/linux/usb/functionfs.h+   :doc: descriptors++接口描述符+----------++可以写入标准USB接口描述符。+最近写入的接口描述符的类/子类决定了可接受哪种类型的类特定描述符。++类特定描述符+------------++类特定描述符仅接受最近写入的接口描述符所指定的类/子类。+以下是部分受支持的类特定描述符示例。++DFU功能描述符+~~~~~~~~~~~~~~++当接口类为USB_CLASS_APP_SPEC且接口子类为USB_SUBCLASS_DFU时,+可以提供DFU功能描述符。+DFU功能描述符在USB设备固件升级(DFU)规范中有描述,版本为 1.1。+-- 2.52.0