drm/i915/bios: Use the copy of the LFP data table always
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 5 Apr 2022 17:33:51 +0000 (20:33 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 12 Apr 2022 06:18:19 +0000 (09:18 +0300)
commit918f3025960f72b6551a229af68e1c596f1a5e9f
tree0ea05607045084667a3813d5b46711d09cad9243
parente163cfb4c96d022b93ab0006ab306de50b6d7c6b
drm/i915/bios: Use the copy of the LFP data table always

Currently get_lvds_fp_timing() still returns a pointer to the original
data block rather than our copy. Let's convert the data pointer offsets
to be relative to the data block rather than the whole BDB. With that
we can make get_lvds_fp_timing() return a pointer to the copy.

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