[Nouveau] [PATCH 3/3] drm/nouveau: use the new drm_dp_max_lane_count helper
Daniel Vetter
daniel.vetter at ffwll.ch
Wed Nov 21 08:04:00 PST 2012
Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
drivers/gpu/drm/nouveau/nouveau_dp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_dp.c b/drivers/gpu/drm/nouveau/nouveau_dp.c
index ed10c1d..437e26b 100644
--- a/drivers/gpu/drm/nouveau/nouveau_dp.c
+++ b/drivers/gpu/drm/nouveau/nouveau_dp.c
@@ -411,7 +411,7 @@ nouveau_dp_detect(struct drm_encoder *encoder)
return false;
nv_encoder->dp.link_bw = 27000 * dpcd[1];
- nv_encoder->dp.link_nr = dpcd[2] & DP_MAX_LANE_COUNT_MASK;
+ nv_encoder->dp.link_nr = drm_dp_max_lane_count(dpcd);
NV_DEBUG(drm, "display: %dx%d dpcd 0x%02x\n",
nv_encoder->dp.link_nr, nv_encoder->dp.link_bw, dpcd[0]);
--
1.7.11.4
More information about the Nouveau
mailing list