From patchwork Mon Jun 18 11:01:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 10470895 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 90B1F6029B for ; Mon, 18 Jun 2018 11:02:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 808182880D for ; Mon, 18 Jun 2018 11:02:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74E2E2899F; Mon, 18 Jun 2018 11:02:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3053E2880D for ; Mon, 18 Jun 2018 11:02:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3BE466E3CA; Mon, 18 Jun 2018 11:02:15 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id E26786E3A2; Mon, 18 Jun 2018 11:02:11 +0000 (UTC) Received: by mail-wm0-x243.google.com with SMTP id 69-v6so14704400wmf.3; Mon, 18 Jun 2018 04:02:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=0rVuL4vT11PQSa72I3IsQc1x27rE1sgSAhMlrESUOqo=; b=k0LCm2BLh97NgYf4N8YzNFA+7uxqusMqdw6HZs5nyF52c4VAwcIPugTfnvcM7ZrwmM 6UsbeCXUggzgtULm874oW5iItp2AuWonxx9+OMxJedRZDMAWaG4U98Cg0qwKsaI/9NUC vZdY9G4mKg1oagLjKEXUdN7KDwdYJx9FogWZCR3h58HzZAnr+22RcoDMNPyDNESfqB3r mDJJaJKPVolFhaTdUhPCEeXdv0xVSsERiOcI9CCcHYxpzx/cR5C5RUOW/JXNFlBCSHHt TaoGILO65EGSyqeZQ4bqYxBXj+Q6HX7k8ujv3WqCh8ei4FcUW+1ye+xC5fwFrbHhSAzr 7uMA== X-Gm-Message-State: APt69E3LYKUW1KYtnuBAdwTUWIaWHuO2D6UM2tGu4l01WhjUvCTD/7RE xM8r8UhzjOdDV59kAs+5ZokJOeH9 X-Google-Smtp-Source: ADUXVKLp6RNbPCtE2RlGtFhl7OEzPxNeCyeOuBgh6z7M0twEE9lBaVYRK2nTQDVp3zPgR5NlgTDKrg== X-Received: by 2002:a50:9a64:: with SMTP id o91-v6mr10668684edb.173.1529319730357; Mon, 18 Jun 2018 04:02:10 -0700 (PDT) Received: from localhost.localdomain (200116b82a328300a80ff4c3a5bdfeeb.dip.versatel-1u1.de. [2001:16b8:2a32:8300:a80f:f4c3:a5bd:feeb]) by smtp.gmail.com with ESMTPSA id d16-v6sm8104131ede.21.2018.06.18.04.02.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Jun 2018 04:02:09 -0700 (PDT) From: Thomas Zimmermann To: intel-gfx@lists.freedesktop.org Date: Mon, 18 Jun 2018 13:01:50 +0200 Message-Id: <20180618110154.30462-2-tdz@users.sourceforge.net> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180618110154.30462-1-tdz@users.sourceforge.net> References: <20180618110154.30462-1-tdz@users.sourceforge.net> Subject: [Intel-gfx] [PATCH 1/5] drm/i915: Replace drm_connector_{un/reference} with put, get functions X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dri-devel@lists.freedesktop.org, Thomas Zimmermann , rodrigo.vivi@intel.com MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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)