Documentation: typec.rst: Mark ascii art as a comment
Subsystems (3)
Heikki Krogerus
maintainerPATCH 1/1 Documentation: typec.rst: Mark ascii art as a comment
To prevent processing of ascii art as reStructuredText elements, marking it as a comment.
Reported-by Masanari Iida <[email protected]>
Fixes bdecb33af34f ("usb: typec: API for controlling USB Type-C Multiplexers")
Signed-off-by Heikki Krogerus <[email protected]>
--- Documentation/driver-api/usb/typec.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/driver-api/usb/typec.rst +1 -1
@@ -212,7 +212,7 @@ port drivers can use USB Role Class API with those. Illustration of the muxes behind a connector that supports an alternate mode: - ------------------------ +.. ------------------------ | Connector | ------------------------ | |
Heikki Krogerus
maintainerQuoted 2 lines · Heikki Krogerus
To prevent processing of ascii art as reStructuredText elements, marking it as a comment.
I will change this, and use literal-block instead.
Quoted 12 lines
Reported-by Masanari Iida <[email protected]>Fixes bdecb33af34f ("usb: typec: API for controlling USB Type-C Multiplexers")Signed-off-by Heikki Krogerus <[email protected]>--- Documentation/driver-api/usb/typec.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/driver-api/usb/typec.rst +0
-0
Documentation/driver-api/usb/typec.rst port drivers can use USB Role Class API with those. · line 218
Quoted 8 lines
Documentation/driver-api/usb/typec.rst +1
-1@@ -212,7 +212,7 @@ port drivers can use USB Role Class API with those. Illustration of the muxes behind a connector that supports an alternate mode: - ------------------------ +.. ------------------------ | Connector | ------------------------ | |
Thanks,
Quoted 2 lines · Heikki Krogerus
To prevent processing of ascii art as reStructuredText elements, marking it as a comment.
Please don't. This hides the ascii art from the generated documentation.
The right fix is to use a reStructuredText literal block like this:
Documentation/driver-api/usb/typec.rst +1 -1
@@ -210,7 +210,7 @@ If the connector is dual-role capable, there may also be a switch for the data role. USB Type-C Connector Class does not supply separate API for them. The port drivers can use USB Role Class API with those. -Illustration of the muxes behind a connector that supports an alternate mode: +Illustration of the muxes behind a connector that supports an alternate mode:: ------------------------ | Connector |
BR,
Jani.
Quoted 21 lines
Reported-by Masanari Iida <[email protected]>Fixes bdecb33af34f ("usb: typec: API for controlling USB Type-C Multiplexers")Signed-off-by Heikki Krogerus <[email protected]>--- Documentation/driver-api/usb/typec.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/driver-api/usb/typec.rst +1
-1@@ -212,7 +212,7 @@ port drivers can use USB Role Class API with those. Illustration of the muxes behind a connector that supports an alternate mode: - ------------------------ +.. ------------------------ | Connector | ------------------------ | |
Signature · 1 line
Jani Nikula, Intel Open Source Technology Center