]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Extract intel_panel_encoder_fixed_mode()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 23 Mar 2022 18:29:33 +0000 (20:29 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 29 Mar 2022 13:35:33 +0000 (16:35 +0300)
commit846cc4e6b49a3c3659251ef9f863147682162ba4
treea10d8e80805c2169773b975e5fb09988d65de23c
parent2bf27dd33128f0af9aee817a54725f35d0d2432a
drm/i915: Extract intel_panel_encoder_fixed_mode()

Apart from the EDID and VBT based mechanism we also sometimes
use the encoder's current mode as the panel fixed mode. We
currently have the same code for that duplicated in two places.
Let's unify.

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