drm/i915: Setup final panel drrs_type already during init
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 3 Oct 2022 11:32:49 +0000 (14:32 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 4 Oct 2022 14:48:19 +0000 (17:48 +0300)
commit22d9a2554dfa41301071c7ebb7002efa306a9290
treeb589d724d33122c21459ebe1976b8b8a627c690a
parentd1af925ba062d78580a98ed8b1a013c0ac2b54ae
drm/i915: Setup final panel drrs_type already during init

Now that we track the VBT drrs type per-panel we can move the
has_drrs_modes() check to the panel init rather than doing it
for every intel_panel_drrs_type() call.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221003113249.16213-7-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_panel.c