From: Ville Syrjala <ville.syrjala@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [Intel-gfx] [PATCH 2/3] drm/i915: Use drm_connector_attach_hdr_output_metadata_property()
Date: Mon, 21 Mar 2022 21:50:05 +0200 [thread overview]
Message-ID: <20220321195006.775-3-ville.syrjala@linux.intel.com> (raw)
In-Reply-To: <20220321195006.775-1-ville.syrjala@linux.intel.com>
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
Stop hand rolling drm_connector_attach_hdr_output_metadata_property().
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
drivers/gpu/drm/i915/display/intel_dp.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 9e19165fd175..5d66f2b953e2 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -4642,9 +4642,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;
@@ -4940,9 +4938,7 @@ intel_dp_add_properties(struct intel_dp *intel_dp, struct drm_connector *connect
}
if (IS_GEMINILAKE(dev_priv) || DISPLAY_VER(dev_priv) >= 11)
- 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;
--
2.34.1
next prev parent reply other threads:[~2022-03-21 19:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-21 19:50 [Intel-gfx] [PATCH 0/3] drm/i915: Random cleanups Ville Syrjala
2022-03-21 19:50 ` [Intel-gfx] [PATCH 1/3] drm/i915: Program i830 DPLL FP register later Ville Syrjala
2022-03-21 19:50 ` Ville Syrjala [this message]
2022-03-21 19:50 ` [Intel-gfx] [PATCH 3/3] drm/i915: Remove dead members from dev_priv Ville Syrjala
2022-03-22 0:38 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: Random cleanups Patchwork
2022-03-22 0:42 ` [Intel-gfx] ✗ Fi.CI.DOCS: " Patchwork
2022-03-22 1:14 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2022-03-22 13:14 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2022-04-01 12:57 ` [Intel-gfx] [PATCH 0/3] " Jani Nikula
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220321195006.775-3-ville.syrjala@linux.intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox