]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/bios: add i915 backpointer to intel_bios_encoder_data
authorJani Nikula <jani.nikula@intel.com>
Wed, 17 Mar 2021 16:36:48 +0000 (18:36 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 18 Mar 2021 12:43:45 +0000 (14:43 +0200)
We'll be needing it in the future.

Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/026b737b122273d256f4247e9b0c84529aa391fd.1615998927.git.jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_bios.c

index 15471cc4f9d3e650d7861aa45a636c09d255868f..21e7ac19e365a420d3fb4afcf2a4032cd9cf3c4a 100644 (file)
@@ -60,6 +60,8 @@
 
 /* Wrapper for VBT child device config */
 struct intel_bios_encoder_data {
+       struct drm_i915_private *i915;
+
        struct child_device_config child;
        struct dsc_compression_parameters_entry *dsc;
        struct list_head node;
@@ -2026,6 +2028,8 @@ parse_general_definitions(struct drm_i915_private *i915,
                if (!devdata)
                        break;
 
+               devdata->i915 = i915;
+
                /*
                 * Copy as much as we know (sizeof) and is available
                 * (child_dev_size) of the child device config. Accessing the
@@ -2103,6 +2107,7 @@ init_vbt_missing_defaults(struct drm_i915_private *i915)
                if (!devdata)
                        break;
 
+               devdata->i915 = i915;
                child = &devdata->child;
 
                if (port == PORT_F)