drm/i915/bios: Assume panel_type==0 if the VBT has bogus data
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 4 May 2022 15:04:36 +0000 (18:04 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 5 May 2022 15:25:49 +0000 (18:25 +0300)
commit4d1b21605d3922c18ceea7fb610a0e17cf7700f9
tree440630139b8336feb95363b9f0d2897a65cf6a84
parent9adf7d4186772ab9fc9fd68d03b1dd2a81a6a36b
drm/i915/bios: Assume panel_type==0 if the VBT has bogus data

Just assume panel_type==0 always if the VBT gives us bogus data.
We actually already do this everywhere else except in
parse_panel_options() since we just leave i915->vbt.panel_type
zeroed. This also seems to be what Windows does.

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-6-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_bios.c