diff options
author | Maxime Ripard <maxime@cerno.tech> | 2021-04-30 11:44:50 +0200 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2021-05-07 17:14:59 +0200 |
commit | 21f79128e0a16e10fd0fa43485fdff01008e0296 (patch) | |
tree | 69fceed3e1e1ea1d9df0c8fb613773e0a6f3e524 /drivers/gpu/drm/i915/display/intel_connector.c | |
parent | bccd5c5102a97d62b6339ebbea5b3f805ba13c14 (diff) | |
download | linux-21f79128e0a16e10fd0fa43485fdff01008e0296.tar.bz2 |
drm/connector: Add a helper to attach the colorspace property
The intel driver uses the same logic to attach the Colorspace property
in multiple places and we'll need it in vc4 too. Let's move that common
code in a helper.
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20210430094451.2145002-4-maxime@cerno.tech
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_connector.c')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_connector.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_connector.c b/drivers/gpu/drm/i915/display/intel_connector.c index d5ceb7bdc14b..9bed1ccecea0 100644 --- a/drivers/gpu/drm/i915/display/intel_connector.c +++ b/drivers/gpu/drm/i915/display/intel_connector.c @@ -282,14 +282,12 @@ void intel_attach_hdmi_colorspace_property(struct drm_connector *connector) { if (!drm_mode_create_hdmi_colorspace_property(connector)) - drm_object_attach_property(&connector->base, - connector->colorspace_property, 0); + drm_connector_attach_colorspace_property(connector); } void intel_attach_dp_colorspace_property(struct drm_connector *connector) { if (!drm_mode_create_dp_colorspace_property(connector)) - drm_object_attach_property(&connector->base, - connector->colorspace_property, 0); + drm_connector_attach_colorspace_property(connector); } |