drm/i915: Use drm_connector_attach_hdr_output_metadata_property()
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>
This commit is contained in:
parent
001b6169a9
commit
e97798e254
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue