Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Documentation: usb: gadget: Wrap remaining usage snippets in literal code block

Several configfs usage snippets forget to be formatted as literal code
blocks. These were outputted in htmldocs output as normal paragraph
instead. In particular, snippet for custom string descriptors as added
in 15a7cf8caabee4 ("usb: gadget: configfs: Support arbitrary string
descriptors") is shown as single combined paragraph, rather than two
command lines.

Wrap them like the rest of snippets.

Fixes: 5e654a4655c3 ("Documentation/usb: gadget_configfs")
Fixes: d80b5005c5dd ("docs: usb: convert documents to ReST")
Fixes: 15a7cf8caabe ("usb: gadget: configfs: Support arbitrary string descriptors")
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20250610031705.32774-2-bagasdotme@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Bagas Sanjaya and committed by
Greg Kroah-Hartman
58992bf3 41edd08b

+5 -5
+5 -5
Documentation/usb/gadget_configfs.rst
··· 92 92 93 93 Further custom string descriptors can be created as directories within the 94 94 language's directory, with the string text being written to the "s" attribute 95 - within the string's directory: 95 + within the string's directory:: 96 96 97 97 $ mkdir strings/0x409/xu.0 98 98 $ echo <string text> > strings/0x409/xu.0/s ··· 104 104 ------------------------------ 105 105 106 106 Each gadget will consist of a number of configurations, their corresponding 107 - directories must be created: 107 + directories must be created:: 108 108 109 - $ mkdir configs/<name>.<number> 109 + $ mkdir configs/<name>.<number> 110 110 111 111 where <name> can be any string which is legal in a filesystem and the 112 112 <number> is the configuration's number, e.g.:: ··· 246 246 ... 247 247 ... 248 248 249 - Remove strings directories in configurations: 249 + Remove strings directories in configurations:: 250 250 251 251 $ rmdir configs/<config name>.<number>/strings/<lang> 252 252 ··· 270 270 ... 271 271 ... 272 272 273 - Remove functions (function modules are not unloaded, though): 273 + Remove functions (function modules are not unloaded, though):: 274 274 275 275 $ rmdir functions/<name>.<instance name> 276 276