mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
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>
This commit is contained in:
parent
2f232cf29e
commit
b96ec4a4e4
1 changed files with 5 additions and 5 deletions
|
@ -243,17 +243,17 @@ static int dm_dp_mst_get_modes(struct drm_connector *connector)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct drm_encoder *dm_mst_best_encoder(struct drm_connector *connector)
|
static struct drm_encoder *
|
||||||
|
dm_mst_atomic_best_encoder(struct drm_connector *connector,
|
||||||
|
struct drm_connector_state *connector_state)
|
||||||
{
|
{
|
||||||
struct amdgpu_dm_connector *amdgpu_dm_connector = to_amdgpu_dm_connector(connector);
|
return &to_amdgpu_dm_connector(connector)->mst_encoder->base;
|
||||||
|
|
||||||
return &amdgpu_dm_connector->mst_encoder->base;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct drm_connector_helper_funcs dm_dp_mst_connector_helper_funcs = {
|
static const struct drm_connector_helper_funcs dm_dp_mst_connector_helper_funcs = {
|
||||||
.get_modes = dm_dp_mst_get_modes,
|
.get_modes = dm_dp_mst_get_modes,
|
||||||
.mode_valid = amdgpu_dm_connector_mode_valid,
|
.mode_valid = amdgpu_dm_connector_mode_valid,
|
||||||
.best_encoder = dm_mst_best_encoder,
|
.atomic_best_encoder = dm_mst_atomic_best_encoder,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void amdgpu_dm_encoder_destroy(struct drm_encoder *encoder)
|
static void amdgpu_dm_encoder_destroy(struct drm_encoder *encoder)
|
||||||
|
|
Loading…
Reference in a new issue