drm/i915: compute_min_voltage_level sort platforms newer-to-older
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 22 Oct 2018 17:15:23 +0000 (10:15 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 22 Oct 2018 21:40:36 +0000 (14:40 -0700)
No functional change.

Just sorting this "if" block from newer to older platform.

Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181022171526.15641-2-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/intel_ddi.c

index e4f8e738c47bb2574ae61052e79235c24a28540e..e40a8c97d34b168f6d0f98ebbbc53547a317a130 100644 (file)
@@ -3373,10 +3373,10 @@ static bool intel_ddi_is_audio_enabled(struct drm_i915_private *dev_priv,
 void intel_ddi_compute_min_voltage_level(struct drm_i915_private *dev_priv,
                                         struct intel_crtc_state *crtc_state)
 {
-       if (IS_CANNONLAKE(dev_priv) && crtc_state->port_clock > 594000)
-               crtc_state->min_voltage_level = 2;
-       else if (IS_ICELAKE(dev_priv) && crtc_state->port_clock > 594000)
+       if (IS_ICELAKE(dev_priv) && crtc_state->port_clock > 594000)
                crtc_state->min_voltage_level = 1;
+       else if (IS_CANNONLAKE(dev_priv) && crtc_state->port_clock > 594000)
+               crtc_state->min_voltage_level = 2;
 }
 
 void intel_ddi_get_config(struct intel_encoder *encoder,