[PATCH v1 2/8] drm/amdgpu: Fix comment for vcn_v5_0_0_set_clockgating_state

Sunil Khatri sunil.khatri at amd.com
Thu Nov 21 17:22:44 UTC 2024


add vcn_v4_0_set_clockgating_state ip_block comment and
clean up the argument "handle" comment.

This fixes the warning:
warning: Function parameter or struct member 'ip_block' not described in 'vcn_v5_0_0_set_clockgating_state'
warning: Excess function parameter 'handle' description in 'vcn_v5_0_0_set_clockgating_state'

Signed-off-by: Sunil Khatri <sunil.khatri at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c
index 3c278554cb4a..6213f1041195 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c
@@ -1233,7 +1233,7 @@ static int vcn_v5_0_0_wait_for_idle(struct amdgpu_ip_block *ip_block)
 /**
  * vcn_v5_0_0_set_clockgating_state - set VCN block clockgating state
  *
- * @handle: amdgpu_device pointer
+ * @ip_block: IP Block for specific IP type
  * @state: clock gating state
  *
  * Set VCN block clockgating state
-- 
2.34.1



More information about the amd-gfx mailing list