diff options
| author | Alex Hung <alex.hung@amd.com> | 2026-05-15 16:30:45 -0600 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-06-03 13:43:23 -0400 |
| commit | 9aef3d167a1c0f1a59ef043ee7b0f525936fbfc6 (patch) | |
| tree | 96009d857742c3d05c27b18a9990a884bba8115b /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git | |
| parent | bb3ab95ac78671b128314b3515aa007439b7b58d (diff) | |
drm/amd/display: Clean up PSR helper functions
[Why & How]
Use the existing local dc variable in amdgpu_dm_set_psr_caps() instead
of redundantly dereferencing link->ctx->dc.
Simplify amdgpu_dm_psr_is_active_allowed() by replacing with early
return and inlining the intermediate stream variable.
No functional changes.
Assisted-by: Copilot:Claude-Sonnet-4.6
Reviewed-by: Ray Wu <ray.wu@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
