Skip to contentSkip to conversation

drm/amdgpu/display: Add amdgpu_display.c documentation

PATCH In review Mario Limonciello 2 participants 2 messages Jul 1 – Jul 7

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu/display: Add amdgpu_display.c documentation

Add kernel-doc references for amdgpu_display.c to the display manager documentation. This pulls in documentation for display core functions like the hotplug work handler, and the adaptive backlight modulation property.

The :internal: directive automatically includes all function documentation, while the explicit :doc: directive captures the property documentation that :internal: doesn't pull in.

Fixes 1454642960b0a ("drm/amd: Re-introduce property to control adaptive backlight modulation")
---
 Documentation/gpu/amdgpu/display/display-manager.rst | 12 ++++++++++++
 1 file changed, 12 insertions(+)
Documentation/gpu/amdgpu/display/display-manager.rst +12 -0
index b269ff3f7a545..4584a3fa48155 100644
@@ -178,3 +178,15 @@ following path:
 2. On DC interface, :c:type:`struct mpcc_blnd_cfg <mpcc_blnd_cfg>` programs the
    MPCC blend configuration considering the :c:type:`dc_plane_info
    <dc_plane_info>` input from DPP.
+
+Display Core
+============
+
+.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
+   :internal:
+
+Display Properties
+==================
+
+.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
+   :doc: property for adaptive backlight modulation
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 20 lines · Mario Limonciello

Add kernel-doc references for amdgpu_display.c to the display manager documentation. This pulls in documentation for display core functions like the hotplug work handler, and the adaptive backlight modulation property.

The :internal: directive automatically includes all function documentation, while the explicit :doc: directive captures the property documentation that :internal: doesn't pull in.

Fixes 1454642960b0a ("drm/amd: Re-introduce property to control adaptive backlight modulation")
---
 Documentation/gpu/amdgpu/display/display-manager.rst | 12 ++++++++++++
 1 file changed, 12 insertions(+)
Documentation/gpu/amdgpu/display/display-manager.rst +0 -0
index b269ff3f7a545..4584a3fa48155 100644

Documentation/gpu/amdgpu/display/display-manager.rst following path: · line 187

Quoted 10 lines
Documentation/gpu/amdgpu/display/display-manager.rst +7 -0
@@ -178,3 +178,15 @@ following path:
 2. On DC interface, :c:type:`struct mpcc_blnd_cfg <mpcc_blnd_cfg>` programs the
    MPCC blend configuration considering the :c:type:`dc_plane_info
    <dc_plane_info>` input from DPP.
+
+Display Core
+============
+
+.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
+   :internal:
+

Since this only adds the doc for hotplug_work_func(), it would make more sense to append under the "Interrupts" section as:

.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
:functions: amdgpu_display_hotplug_work_func

With that,

Quoted 5 lines
Documentation/gpu/amdgpu/display/display-manager.rst +5 -0
+Display Properties
+==================
+
+.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
+   :doc: property for adaptive backlight modulation