Skip to contentSkip to conversation

drm/dp: Fix documentation warning

PATCH Applied MarileneGarcia 3 participants 3 messages May 19, 2024 – May 28, 2024 DRM drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/dp: Fix documentation warning

It fixes the following warnings when
the kernel documentation is generated:

./include/drm/display/drm_dp_helper.h:126:
warning: Function parameter or struct member
'mode' not described in 'drm_dp_as_sdp'

./include/drm/display/drm_dp_helper.h:126:
warning: Excess struct member 'operation_mode' description in 'drm_dp_as_sdp'

---
Changes:
This documentation comment should refer to the name of the variable to solve the warnings. As operation_mode is the name of the enum, and the declared variable name is mode.

Thank you.

 include/drm/display/drm_dp_helper.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/display/drm_dp_helper.h +1 -1
index 8bed890eec2c..8defcc399f42 100644
@@ -112,7 +112,7 @@ struct drm_dp_vsc_sdp {
  * @target_rr: Target Refresh
  * @duration_incr_ms: Successive frame duration increase
  * @duration_decr_ms: Successive frame duration decrease
- * @operation_mode: Adaptive Sync Operation Mode
+ * @mode: Adaptive Sync Operation Mode
  */
 struct drm_dp_as_sdp {
 	unsigned char sdp_type;
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 18 lines · MarileneGarcia

It fixes the following warnings when
the kernel documentation is generated:

./include/drm/display/drm_dp_helper.h:126:
warning: Function parameter or struct member
'mode' not described in 'drm_dp_as_sdp'

./include/drm/display/drm_dp_helper.h:126:
warning: Excess struct member 'operation_mode' description in 'drm_dp_as_sdp'

---
Changes:
This documentation comment should refer to the name of the variable to solve the warnings. As operation_mode is the name of the enum, and the declared variable name is mode.

Quoted 5 lines

Thank you.

 include/drm/display/drm_dp_helper.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Fixes 0bbb8f594e33 ("drm/dp: Add Adaptive Sync SDP logging")
Signature · 2 lines
With best wishes
Dmitry
#2 lore raw
In reply to MarileneGarcia
Quoted 8 lines · MarileneGarcia

It fixes the following warnings when
the kernel documentation is generated:

./include/drm/display/drm_dp_helper.h:126:
warning: Function parameter or struct member
'mode' not described in 'drm_dp_as_sdp'

[...]

Applied, thanks!

[1/1] drm/dp: Fix documentation warning

      commit: c7ce956bb6d0f32ab921b6ffba1a6a834df96f21

Best regards,

Signature · 1 line
Douglas Anderson <[email protected]>