aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
diff options
context:
space:
mode:
authorImre Deak <[email protected]>2018-11-20 09:23:24 +0000
committerImre Deak <[email protected]>2018-11-21 11:38:20 +0000
commitc0871805ce1c716889c02450e507b420cb5e6d26 (patch)
tree8a387f41788fd20a526e1921e293c70e3d31d69f /drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
parentdrm/i915: Make pipe/transcoder offsets not depend on enum values (diff)
downloadkernel-c0871805ce1c716889c02450e507b420cb5e6d26.tar.gz
kernel-c0871805ce1c716889c02450e507b420cb5e6d26.zip
drm/i915: Make EDP PSR flags not depend on enum values
Depending on the transcoder enum values to translate from transcoder to EDP PSR flags can easily break if we add a new transcoder. So remove the dependency by using an explicit mapping. While at it also add a WARN for unexpected trancoders. v2: - Simplify things by defining flag shift values instead of indices. - s/trans/cpu_transcoder/ (Ville) v3: - Define flags to look like separate bits instead of the values of the same bitfield. (Ville) Cc: Ville Syrjälä <[email protected]> Cc: Lucas De Marchi <[email protected]> Cc: Mika Kahola <[email protected]> Signed-off-by: Imre Deak <[email protected]> Reviewed-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c')
0 files changed, 0 insertions, 0 deletions