drm/i915/display: Make get_allowed_dc_mask().max_dc set a chain of if and elses
authorJosé Roberto de Souza <jose.souza@intel.com>
Wed, 11 Nov 2020 16:24:08 +0000 (08:24 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Thu, 12 Nov 2020 14:01:04 +0000 (06:01 -0800)
commit0446049432136abb76eb012c3ddd00fce670881b
tree09b7da377aec4c3af84eebc9c83d46aafd83bf1e
parent02d794a34c0083057bdfd576e2f6e75b54f31e00
drm/i915/display: Make get_allowed_dc_mask().max_dc set a chain of if and elses

Just following what we do in many other places, DG1 is a exception so
move it to the top instead of add it inside of INTEL_GEN(dev_priv) >= 12.

Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201111162408.98002-2-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_display_power.c