Commit 2a40e584 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Simplify the intel_color_init_hooks() if ladder

Get rid of the funny hsw vs. ivb extra indentation level in
intel_color_init_hooks().
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220929071521.26612-4-ville.syrjala@linux.intel.comReviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 064751a6
......@@ -2238,12 +2238,11 @@ void intel_color_init_hooks(struct drm_i915_private *dev_priv)
dev_priv->display.funcs.color = &skl_color_funcs;
else if (DISPLAY_VER(dev_priv) == 8)
dev_priv->display.funcs.color = &bdw_color_funcs;
else if (DISPLAY_VER(dev_priv) == 7) {
if (IS_HASWELL(dev_priv))
dev_priv->display.funcs.color = &hsw_color_funcs;
else
dev_priv->display.funcs.color = &ivb_color_funcs;
} else
else if (IS_HASWELL(dev_priv))
dev_priv->display.funcs.color = &hsw_color_funcs;
else if (DISPLAY_VER(dev_priv) == 7)
dev_priv->display.funcs.color = &ivb_color_funcs;
else
dev_priv->display.funcs.color = &ilk_color_funcs;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment