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

Commit c695b6b6 authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Daniel Vetter
Browse files

drm/i915: Flatten intel_edp_panel_vdd_on()



Less pointless indentation is always nice. There will be a bit more
code in this function once the power sequencer locking is fixed.

Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 15e899a0
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -1221,12 +1221,15 @@ static bool edp_panel_vdd_on(struct intel_dp *intel_dp)

void intel_edp_panel_vdd_on(struct intel_dp *intel_dp)
{
	if (is_edp(intel_dp)) {
		bool vdd = edp_panel_vdd_on(intel_dp);
	bool vdd;

	if (!is_edp(intel_dp))
		return;

	vdd = edp_panel_vdd_on(intel_dp);

	WARN(!vdd, "eDP VDD already requested on\n");
}
}

static void edp_panel_vdd_off_sync(struct intel_dp *intel_dp)
{