OSDN Git Service

drm/amd/display: Don't access legacy properties
authorHarry Wentland <harry.wentland@amd.com>
Tue, 17 Oct 2017 16:02:01 +0000 (12:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Apr 2018 18:08:02 +0000 (13:08 -0500)
commit8218d7f1f70179a532639f01dfd32dc5dbb09ed3
tree947083ba58e0dcc731628a7460626ce9545f040c
parent1eb1547fd0267fbb5fabe4973210dfc295a92725
drm/amd/display: Don't access legacy properties

We're an atomic driver and shouldn't access legacy properties. Doing so
will only scare users with stack traces.

Instead save the prop in the state and access it directly. Much simpler.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h