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)) {
|
if (lspcon_init(dig_port)) {
|
||||||
lspcon_detect_hdr_capability(lspcon);
|
lspcon_detect_hdr_capability(lspcon);
|
||||||
if (lspcon->hdr_supported)
|
if (lspcon->hdr_supported)
|
||||||
drm_object_attach_property(&connector->base,
|
drm_connector_attach_hdr_output_metadata_property(connector);
|
||||||
connector->dev->mode_config.hdr_output_metadata_property,
|
|
||||||
0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
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))
|
if (has_gamut_metadata_dip(dev_priv, port))
|
||||||
drm_object_attach_property(&connector->base,
|
drm_connector_attach_hdr_output_metadata_property(connector);
|
||||||
connector->dev->mode_config.hdr_output_metadata_property,
|
|
||||||
0);
|
|
||||||
|
|
||||||
if (intel_dp_is_edp(intel_dp)) {
|
if (intel_dp_is_edp(intel_dp)) {
|
||||||
u32 allowed_scalers;
|
u32 allowed_scalers;
|
||||||
|
|
Loading…
Reference in New Issue