Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f24bc39f authored by Zhao Yakui's avatar Zhao Yakui Committed by Eric Anholt
Browse files

drm/i915: fix the incorrect condition judgement in dp_is_present_in_vbt



We were always looking for the PORT_IDPB entry.

Signed-off-by: default avatarZhao Yakui <yakui.zhao@intel.com>
Reviewed-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent f0217c42
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1247,11 +1247,11 @@ int dp_is_present_in_vbt(struct drm_device *dev, int dp_reg)
		return 1;

	dp_port = 0;
	if (dp_reg == DP_B || PCH_DP_B)
	if (dp_reg == DP_B || dp_reg == PCH_DP_B)
		dp_port = PORT_IDPB;
	else if (dp_reg == DP_C || PCH_DP_C)
	else if (dp_reg == DP_C || dp_reg == PCH_DP_C)
		dp_port = PORT_IDPC;
	else if (dp_reg == DP_D || PCH_DP_D)
	else if (dp_reg == DP_D || dp_reg == PCH_DP_D)
		dp_port = PORT_IDPD;

	ret = 0;