mirror of https://gitee.com/openkylin/linux.git
drm/amd/display: Drop dm_connector_update_modes
It's unused since the drm_edid_to_eld cleanup 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> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
405c50a07d
commit
978cc9728f
|
@ -174,12 +174,6 @@ static const struct drm_connector_funcs dm_dp_mst_connector_funcs = {
|
|||
.atomic_get_property = amdgpu_dm_connector_atomic_get_property
|
||||
};
|
||||
|
||||
static int dm_connector_update_modes(struct drm_connector *connector,
|
||||
struct edid *edid)
|
||||
{
|
||||
return drm_add_edid_modes(connector, edid);
|
||||
}
|
||||
|
||||
void dm_dp_mst_dc_sink_create(struct drm_connector *connector)
|
||||
{
|
||||
struct amdgpu_dm_connector *aconnector = to_amdgpu_dm_connector(connector);
|
||||
|
@ -228,7 +222,7 @@ static int dm_dp_mst_get_modes(struct drm_connector *connector)
|
|||
int ret = 0;
|
||||
|
||||
if (!aconnector)
|
||||
return dm_connector_update_modes(connector, NULL);
|
||||
return drm_add_edid_modes(connector, NULL);
|
||||
|
||||
if (!aconnector->edid) {
|
||||
struct edid *edid;
|
||||
|
@ -264,7 +258,7 @@ static int dm_dp_mst_get_modes(struct drm_connector *connector)
|
|||
&aconnector->base, edid);
|
||||
}
|
||||
|
||||
ret = dm_connector_update_modes(connector, aconnector->edid);
|
||||
ret = drm_add_edid_modes(connector, aconnector->edid);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue