]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Use drm_connector_attach_hdr_output_metadata_property()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 21 Mar 2022 19:50:05 +0000 (21:50 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 4 Apr 2022 13:58:45 +0000 (16:58 +0300)
Stop hand rolling drm_connector_attach_hdr_output_metadata_property().

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

index b0b4bdaf3b9dba52ad730402031af007cdd81506..5430d3a7849186114e16aa78ea9db7e67c21cdeb 100644 (file)
@@ -4693,9 +4693,7 @@ intel_dp_connector_register(struct drm_connector *connector)
        if (lspcon_init(dig_port)) {
                lspcon_detect_hdr_capability(lspcon);
                if (lspcon->hdr_supported)
-                       drm_object_attach_property(&connector->base,
-                                                  connector->dev->mode_config.hdr_output_metadata_property,
-                                                  0);
+                       drm_connector_attach_hdr_output_metadata_property(connector);
        }
 
        return ret;
@@ -5010,9 +5008,7 @@ intel_dp_add_properties(struct intel_dp *intel_dp, struct drm_connector *connect
        }
 
        if (has_gamut_metadata_dip(dev_priv, port))
-               drm_object_attach_property(&connector->base,
-                                          connector->dev->mode_config.hdr_output_metadata_property,
-                                          0);
+               drm_connector_attach_hdr_output_metadata_property(connector);
 
        if (intel_dp_is_edp(intel_dp)) {
                u32 allowed_scalers;