]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Refactor non-EDID fixed mode duplication
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 31 Mar 2022 11:28:14 +0000 (14:28 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 31 Mar 2022 11:28:14 +0000 (14:28 +0300)
commitcf591582b2d5817f2d42cfe092bed19e10f2e752
treec2610b2b5a0c1c1fc36edc83bf98d7b6029a27ed
parented3bb168e0ebf45d3579af05df65ef8489776a76
drm/i915: Refactor non-EDID fixed mode duplication

All the non-EDID fixed mode functions basically do the exact
same thing. Let's refactor the common bits into a shared
function.

There are minor differences on how the mode types are populated,
whether the display info physical size is updated, and the debug
print. The differences are purely accidental, so unifying them is
actually a good thing.

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