OSDN Git Service

drm/i915/bios: Refactor panel_type code
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 4 May 2022 15:04:38 +0000 (18:04 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 5 May 2022 15:26:11 +0000 (18:26 +0300)
commitcc589f2deeb4160fb21cd74c25d6779082d9d561
tree2a5edff6c3f3bcf02127a4bf564f00da2b83e345
parent719f4c51e2c9198bbe1e5e194d7467ac0413cfbb
drm/i915/bios: Refactor panel_type code

Make the panel type code a bit more abstract along the
lines of the source of the panel type. For the moment
we have three classes: OpRegion, VBT, fallback.
Well introduce another one shortly.

We can now also print out all the different panel types,
and indicate which one we ultimately selected. Could help
with debugging.

v2: Add .get_panel_type() vfunc (Jani)

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