From: Thomas Zimmermann <tdz@users.sourceforge.net>
To: intel-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org,
Thomas Zimmermann <tdz@users.sourceforge.net>,
rodrigo.vivi@intel.com
Subject: [PATCH 1/5] drm/i915: Replace drm_connector_{un/reference} with put, get functions
Date: Mon, 18 Jun 2018 13:01:50 +0200 [thread overview]
Message-ID: <20180618110154.30462-2-tdz@users.sourceforge.net> (raw)
In-Reply-To: <20180618110154.30462-1-tdz@users.sourceforge.net>
This patch unifies the naming of DRM functions for reference counting
of struct drm_connector. The resulting code is more aligned with the
rest of the Linux kernel interfaces.
Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
---
drivers/gpu/drm/i915/intel_display.c | 4 ++--
drivers/gpu/drm/i915/intel_dp_mst.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 9939e092d9aa..593979cbd215 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -10725,7 +10725,7 @@ static void intel_modeset_update_connector_atomic_state(struct drm_device *dev)
drm_connector_list_iter_begin(dev, &conn_iter);
for_each_intel_connector_iter(connector, &conn_iter) {
if (connector->base.state->crtc)
- drm_connector_unreference(&connector->base);
+ drm_connector_put(&connector->base);
if (connector->base.encoder) {
connector->base.state->best_encoder =
@@ -10733,7 +10733,7 @@ static void intel_modeset_update_connector_atomic_state(struct drm_device *dev)
connector->base.state->crtc =
connector->base.encoder->crtc;
- drm_connector_reference(&connector->base);
+ drm_connector_get(&connector->base);
} else {
connector->base.state->best_encoder = NULL;
connector->base.state->crtc = NULL;
diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c b/drivers/gpu/drm/i915/intel_dp_mst.c
index 5890500a3a8b..789a403e9f99 100644
--- a/drivers/gpu/drm/i915/intel_dp_mst.c
+++ b/drivers/gpu/drm/i915/intel_dp_mst.c
@@ -524,7 +524,7 @@ static void intel_dp_destroy_mst_connector(struct drm_dp_mst_topology_mgr *mgr,
intel_connector->mst_port = NULL;
drm_modeset_unlock(&connector->dev->mode_config.connection_mutex);
- drm_connector_unreference(connector);
+ drm_connector_put(connector);
}
static void intel_dp_mst_hotplug(struct drm_dp_mst_topology_mgr *mgr)
--
2.14.4
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-06-18 11:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-18 11:01 [PATCH 0/5] drm/i915: Replace {un/reference} with {put, get} functions Thomas Zimmermann
2018-06-18 11:01 ` Thomas Zimmermann [this message]
2018-06-18 11:01 ` [PATCH 2/5] drm/i915: Replace drm_gem_object_{un/reference} " Thomas Zimmermann
2018-06-18 11:01 ` [PATCH 3/5] drm/i915: Replace __drm_gem_object_unreference with __drm_gem_object_put Thomas Zimmermann
2018-06-18 11:01 ` [PATCH 4/5] drm/i915: Replace drm_gem_object_unreference_unlocked with put function Thomas Zimmermann
2018-06-18 11:01 ` [PATCH 5/5] drm/i915: Replace drm_dev_unref with drm_dev_put Thomas Zimmermann
2018-06-18 12:01 ` ✓ Fi.CI.BAT: success for drm/i915: Replace {un/reference} with {put, get} functions Patchwork
2018-06-18 14:56 ` ✗ Fi.CI.IGT: failure " Patchwork
2018-06-26 9:02 ` ✓ Fi.CI.BAT: success " Patchwork
2018-06-26 9:54 ` ✓ Fi.CI.IGT: " Patchwork
2018-06-28 17:10 ` [PATCH 0/5] drm/i915: Replace {un/reference} with {put,get} functions Daniel Vetter
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=20180618110154.30462-2-tdz@users.sourceforge.net \
--to=tdz@users.sourceforge.net \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=rodrigo.vivi@intel.com \
/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;
as well as URLs for NNTP newsgroup(s).