]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Avoid operating on copies of backlight caps
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 28 Feb 2025 18:51:43 +0000 (12:51 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Mar 2025 15:42:46 +0000 (10:42 -0500)
commitf25c0f0d4f99df9725e50d282c9143fa51e84645
tree3e8b57ab5a724cc1c9381c458e8c84fce051ac08
parentf729e63743f0fbd504a1464e9495c456f63ff7ef
drm/amd/display: Avoid operating on copies of backlight caps

Making a copy of the backlight caps structure between uses is unnecessary.
Refer to pointers to the same structure when using it.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Link: https://lore.kernel.org/r/20250228185145.186319-4-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c