Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu/dm/mst: Use ->atomic_best_encoder

We are supposed to be atomic after all. We'll need this in a moment for
the next commit.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Lyude Paul and committed by
Alex Deucher
b96ec4a4 2f232cf2

+5 -5
+5 -5
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
··· 243 243 return ret; 244 244 } 245 245 246 - static struct drm_encoder *dm_mst_best_encoder(struct drm_connector *connector) 246 + static struct drm_encoder * 247 + dm_mst_atomic_best_encoder(struct drm_connector *connector, 248 + struct drm_connector_state *connector_state) 247 249 { 248 - struct amdgpu_dm_connector *amdgpu_dm_connector = to_amdgpu_dm_connector(connector); 249 - 250 - return &amdgpu_dm_connector->mst_encoder->base; 250 + return &to_amdgpu_dm_connector(connector)->mst_encoder->base; 251 251 } 252 252 253 253 static const struct drm_connector_helper_funcs dm_dp_mst_connector_helper_funcs = { 254 254 .get_modes = dm_dp_mst_get_modes, 255 255 .mode_valid = amdgpu_dm_connector_mode_valid, 256 - .best_encoder = dm_mst_best_encoder, 256 + .atomic_best_encoder = dm_mst_atomic_best_encoder, 257 257 }; 258 258 259 259 static void amdgpu_dm_encoder_destroy(struct drm_encoder *encoder)