diff options
author | Imre Deak <imre.deak@intel.com> | 2021-02-01 15:01:45 +0300 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2021-02-04 20:22:36 +0300 |
commit | 6fec777c11968b5ed770ca9c37306f66387bdfd3 (patch) | |
tree | d4ca0241a363264983bad0b35e824eb38057969b /drivers/gpu/drm/drm_dp_mst_topology.c | |
parent | e0305024e76e3bd4849d199af1d7415d95ce82c0 (diff) | |
download | linux-6fec777c11968b5ed770ca9c37306f66387bdfd3.tar.xz |
drm/dp_mst: Use DP_MST_LOGICAL_PORT_0 instead of magic number
Use the macro defined for the first logical port instead of the
corresponding magic number.
Cc: Lyude Paul <lyude@redhat.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210201120145.350258-4-imre.deak@intel.com
Diffstat (limited to 'drivers/gpu/drm/drm_dp_mst_topology.c')
-rw-r--r-- | drivers/gpu/drm/drm_dp_mst_topology.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index 1979c57ad683..2fb84e7f1e69 100644 --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -4219,9 +4219,8 @@ drm_dp_mst_detect_port(struct drm_connector *connector, case DP_PEER_DEVICE_SST_SINK: ret = connector_status_connected; /* for logical ports - cache the EDID */ - if (port->port_num >= 8 && !port->cached_edid) { + if (port->port_num >= DP_MST_LOGICAL_PORT_0 && !port->cached_edid) port->cached_edid = drm_get_edid(connector, &port->aux.ddc); - } break; case DP_PEER_DEVICE_DP_LEGACY_CONV: if (port->ldps) |