drm/i915/display: Fix htmldocs build
Subsystems (3)
Rodrigo Vivi
maintainerPATCH 1/1 drm/i915/display: Fix htmldocs build
Fixes a wrong documentation block indentation:
Documentation/gpu/i915:141: ./drivers/gpu/drm/i915/display/intel_hotplug.c:1080: ERROR: Unexpected indentation. Documentation/gpu/i915:141: ./drivers/gpu/drm/i915/display/intel_hotplug.c:1082: WARNING: Block quote ends without a blank line; unexpected unindent.
--- drivers/gpu/drm/i915/display/intel_hotplug.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
drivers/gpu/drm/i915/display/intel_hotplug.c +9 -9
@@ -1075,15 +1075,15 @@ static bool unblock_hpd_pin(struct intel_display *display, enum hpd_pin pin)* Blocks the handling of HPD IRQs on the HPD pin of @encoder. * * On return: -* - It's guaranteed that the blocked encoders' HPD pulse handler -* (via intel_digital_port::hpd_pulse()) is not running. -* - The hotplug event handling (via intel_encoder::hotplug()) of an -* HPD IRQ pending at the time this function is called may be still -* running. -* - Detection on the encoder's connector (via -* drm_connector_helper_funcs::detect_ctx(), -* drm_connector_funcs::detect()) remains allowed, for instance as part of -* userspace connector probing, or DRM core's connector polling. +* - It's guaranteed that the blocked encoders' HPD pulse handler +* (via intel_digital_port::hpd_pulse()) is not running. +* - The hotplug event handling (via intel_encoder::hotplug()) of an +* HPD IRQ pending at the time this function is called may be still +* running. +* - Detection on the encoder's connector (via +* drm_connector_helper_funcs::detect_ctx(), +* drm_connector_funcs::detect()) remains allowed, for instance as part of +* userspace connector probing, or DRM core's connector polling. * * The call must be followed by calling intel_hpd_unblock(), or * intel_hpd_clear_and_unblock().
Signature · 1 line
2.49.0
Quoted 19 lines · Rodrigo Vivi
Fixes a wrong documentation block indentation:
Documentation/gpu/i915:141:./drivers/gpu/drm/i915/display/intel_hotplug.c:1080: ERROR: Unexpected indentation.Documentation/gpu/i915:141:./drivers/gpu/drm/i915/display/intel_hotplug.c:1082: WARNING: Block quote ends without a blank line; unexpected unindent.Fixes 0d77a3e0ea90 ("drm/i915/hpd: Add support for blocking the IRQ handling on an HPD pin")Reported-by Stephen Rothwell <[email protected]>Cc Imre Deak <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>--- drivers/gpu/drm/i915/display/intel_hotplug.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)drivers/gpu/drm/i915/display/intel_hotplug.c +0
-0
drivers/gpu/drm/i915/display/intel_hotplug.c static bool unblock_hpd_pin(struct intel_display *display, enum hpd_pin pin) · line 1077
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_hotplug.c +0
-0@@ -1075,15 +1075,15 @@ static bool unblock_hpd_pin(struct intel_display *display, enum hpd_pin pin)* Blocks the handling of HPD IRQs on the HPD pin of @encoder. * * On return:
The closest documentation I found about lists in a kernel-doc block is the one for Sphinx at [1]. According to that an empty line is required here (i.e. before the first list item) and then no need to add extra indents for list items. Tested that now with 'make htmldocs' as well. Using that fix instead:
[1] https://ikerdocs-sphinx.readthedocs.io/syntax/lists.html
Quoted 24 lines
drivers/gpu/drm/i915/display/intel_hotplug.c +9
-9-* - It's guaranteed that the blocked encoders' HPD pulse handler -* (via intel_digital_port::hpd_pulse()) is not running. -* - The hotplug event handling (via intel_encoder::hotplug()) of an -* HPD IRQ pending at the time this function is called may be still -* running. -* - Detection on the encoder's connector (via -* drm_connector_helper_funcs::detect_ctx(), -* drm_connector_funcs::detect()) remains allowed, for instance as part of -* userspace connector probing, or DRM core's connector polling. +* - It's guaranteed that the blocked encoders' HPD pulse handler +* (via intel_digital_port::hpd_pulse()) is not running. +* - The hotplug event handling (via intel_encoder::hotplug()) of an +* HPD IRQ pending at the time this function is called may be still +* running. +* - Detection on the encoder's connector (via +* drm_connector_helper_funcs::detect_ctx(), +* drm_connector_funcs::detect()) remains allowed, for instance as part of +* userspace connector probing, or DRM core's connector polling. * * The call must be followed by calling intel_hpd_unblock(), or * intel_hpd_clear_and_unblock(). Signature · 1 line
2.49.0
Rodrigo Vivi
maintainerQuoted 15 lines · Imre Deak
Quoted 14 lines · Rodrigo Vivi
Fixes a wrong documentation block indentation:
Documentation/gpu/i915:141:./drivers/gpu/drm/i915/display/intel_hotplug.c:1080: ERROR: Unexpected indentation.Documentation/gpu/i915:141:./drivers/gpu/drm/i915/display/intel_hotplug.c:1082: WARNING: Block quote ends without a blank line; unexpected unindent.Fixes 0d77a3e0ea90 ("drm/i915/hpd: Add support for blocking the IRQ handling on an HPD pin")Reported-by Stephen Rothwell <[email protected]>Cc Imre Deak <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>--- drivers/gpu/drm/i915/display/intel_hotplug.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
Quoted 13 lines
drivers/gpu/drm/i915/display/intel_hotplug.c static bool unblock_hpd_pin(struct intel_display *display, enum hpd_pin pin) · line 1077
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_hotplug.c +0
-0@@ -1075,15 +1075,15 @@ static bool unblock_hpd_pin(struct intel_display *display, enum hpd_pin pin)* Blocks the handling of HPD IRQs on the HPD pin of @encoder. * * On return: The closest documentation I found about lists in a kernel-doc block is the one for Sphinx at [1]. According to that an empty line is required here (i.e. before the first list item) and then no need to add extra indents for list items. Tested that now with 'make htmldocs' as well.
doh! indeed! and I had already faced that and came to that conclusion in another opportunity...
Quoted 3 lines
Using that fix instead:
Reviewed-by Imre Deak <[email protected]>
sending v2 right now, thank you!
Quoted 27 lines
[1] https://ikerdocs-sphinx.readthedocs.io/syntax/lists.html
Quoted 24 lines
drivers/gpu/drm/i915/display/intel_hotplug.c +9
-9-* - It's guaranteed that the blocked encoders' HPD pulse handler -* (via intel_digital_port::hpd_pulse()) is not running. -* - The hotplug event handling (via intel_encoder::hotplug()) of an -* HPD IRQ pending at the time this function is called may be still -* running. -* - Detection on the encoder's connector (via -* drm_connector_helper_funcs::detect_ctx(), -* drm_connector_funcs::detect()) remains allowed, for instance as part of -* userspace connector probing, or DRM core's connector polling. +* - It's guaranteed that the blocked encoders' HPD pulse handler +* (via intel_digital_port::hpd_pulse()) is not running. +* - The hotplug event handling (via intel_encoder::hotplug()) of an +* HPD IRQ pending at the time this function is called may be still +* running. +* - Detection on the encoder's connector (via +* drm_connector_helper_funcs::detect_ctx(), +* drm_connector_funcs::detect()) remains allowed, for instance as part of +* userspace connector probing, or DRM core's connector polling. * * The call must be followed by calling intel_hpd_unblock(), or * intel_hpd_clear_and_unblock(). Signature · 1 line
2.49.0