]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Add scoped mutexes for amdgpu_dm_dhcp
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 28 Feb 2025 19:30:01 +0000 (13:30 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Mar 2025 17:32:58 +0000 (13:32 -0400)
commit6b675ab8efbf2bcee25be29e865455c56e246401
tree90ec423ba4b996c9659ef634f308554a16519bd9
parent725a04ba5a95e89c89633d4322430cfbca7ce128
drm/amd/display: Add scoped mutexes for amdgpu_dm_dhcp

[Why]
Guards automatically release mutex when it goes out of scope making
code easier to follow.

[How]
Replace all use of mutex_lock()/mutex_unlock() with guard(mutex).

Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c