diff options
author | Dave Airlie <airlied@redhat.com> | 2015-10-01 16:28:25 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-10-02 15:34:42 +1000 |
commit | ccf03d6995fa4b784f5b987726ba98f4859bf326 (patch) | |
tree | 6fdc0aabe330fac0ec6ddc9d1cbf54b0a000ae3b /drivers/gpu/drm | |
parent | 274d83524895fe41ca8debae4eec60ede7252bb5 (diff) | |
download | op-kernel-dev-ccf03d6995fa4b784f5b987726ba98f4859bf326.zip op-kernel-dev-ccf03d6995fa4b784f5b987726ba98f4859bf326.tar.gz |
drm/dp/mst: add some defines for logical/physical ports
This just removes the magic number.
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/drm_dp_mst_topology.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index 3084b3a..bf27a07 100644 --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -1125,7 +1125,7 @@ static void drm_dp_add_port(struct drm_dp_mst_branch *mstb, drm_dp_put_port(port); goto out; } - if (port->port_num >= 8) { + if (port->port_num >= DP_MST_LOGICAL_PORT_0) { port->cached_edid = drm_get_edid(port->connector, &port->aux.ddc); drm_mode_connector_set_tile_property(port->connector); } |