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

Commit 0d536cb4 authored by Paulo Zanoni's avatar Paulo Zanoni Committed by Daniel Vetter
Browse files

drm/i915: invert the log inside intel_prepare_ddi



Do an early return in case we don't have DDI instead of having the
whole function inside an "if" statement.

Signed-off-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: default avatarImre Deak <imre.deak@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent affa9354
Loading
Loading
Loading
Loading
+10 −9
Original line number Diff line number Diff line
@@ -115,17 +115,18 @@ void intel_prepare_ddi(struct drm_device *dev)
{
	int port;

	if (HAS_DDI(dev)) {
	if (!HAS_DDI(dev))
		return;

	for (port = PORT_A; port < PORT_E; port++)
		intel_prepare_ddi_buffers(dev, port, false);

		/* DDI E is the suggested one to work in FDI mode, so program is as such by
		 * default. It will have to be re-programmed in case a digital DP output
		 * will be detected on it
	/* DDI E is the suggested one to work in FDI mode, so program is as such
	 * by default. It will have to be re-programmed in case a digital DP
	 * output will be detected on it
	 */
	intel_prepare_ddi_buffers(dev, PORT_E, true);
}
}

static const long hsw_ddi_buf_ctl_values[] = {
	DDI_BUF_EMP_400MV_0DB_HSW,