drm/i915: Flatten a bunch of the pfit functions
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 Apr 2020 16:19:13 +0000 (19:19 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 24 Apr 2020 14:21:32 +0000 (17:21 +0300)
commiteac9c58539aa2db9e1173964025760fdea905656
tree30e4403e9d3ba6621d76d78dd6dcea32beeafc20
parentc5a01ec7579a264ad332be8fa89f446efa2aaa58
drm/i915: Flatten a bunch of the pfit functions

Most of the pfit functions are of the form:

func()
{
if (pfit_enabled) {
...
}
}

Flip the pfit_enabled check around to flatten the functions.

And while we're touching all this let's do the usual
s/pipe_config/crtc_state/ replacement.

Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200422161917.17389-2-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_display.c