From patchwork Fri Sep 28 22:50:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 10620519 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 98FFF913 for ; Fri, 28 Sep 2018 22:50:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89028287A3 for ; Fri, 28 Sep 2018 22:50:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D3E92BD7F; Fri, 28 Sep 2018 22:50:52 +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 2D2F3287A3 for ; Fri, 28 Sep 2018 22:50:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 683E96E061; Fri, 28 Sep 2018 22:50:49 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ot1-f66.google.com (mail-ot1-f66.google.com [209.85.210.66]) by gabe.freedesktop.org (Postfix) with ESMTPS id DF7256E04D; Fri, 28 Sep 2018 22:50:47 +0000 (UTC) Received: by mail-ot1-f66.google.com with SMTP id h26-v6so7549744otl.9; Fri, 28 Sep 2018 15:50:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xF4J/tu6O3fmV6GMsuiSkRFcnUyMm94gMR7WjsV3KQE=; b=Fph8yrJs6zpRaIcRaCEX3nVZoisrwdbGqk/fa5rjrZ1yUSd9Ki0VaVtemVt98gUxO+ dLadNJSKSQSWpiwyG8y1hmeRbqKFyVXylMnsfXUyotu85y246ymGeD+K+rgD3l0rnb3c 22KeUSNoy22me8gxK93Tarm9MXtq/1RLMMiHc9H/uU1q5nlcGhQmYgq7xY7MEcGmqUxx DMCsj0nQTiO77pXGQ4xKJqYSTRejn9EUySt8r8sKJkDNAWk6ymyDV1qJaV2n2SMPUQLZ g7TotUnaxpAnljbjZmrMECAdL6g2dnkrchiaDHq9b9g7yTcQtgW8liuFdTMtrVybE5lS mXAw== X-Gm-Message-State: ABuFfogjXgpSflfnUj3qUI2heZQmId50EGsKkwC+8g/hagDReFo0IdqG qU5AmeDW9LZuA2EjoGCkxg== X-Google-Smtp-Source: ACcGV62kxXsIiugAWX3IYU1ET9CR8rPtSAOa39N8W4xmjARXtv6Y6YW7W82KIDZabytlNPt3f++HbA== X-Received: by 2002:a9d:5b46:: with SMTP id e6-v6mr489364otj.318.1538175046810; Fri, 28 Sep 2018 15:50:46 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id s65-v6sm2101652oia.46.2018.09.28.15.50.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Sep 2018 15:50:46 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org Subject: [PATCH v2] drm: Convert to using %pOFn instead of device_node.name Date: Fri, 28 Sep 2018 17:50:44 -0500 Message-Id: <20180928225044.20132-1-robh@kernel.org> X-Mailer: git-send-email 2.17.1 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: freedreno@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Sean Paul MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. For drm_modes.c, the full node path is already printed out, so printing just the node name a 2nd time is redundant and can be removed. Cc: Gustavo Padovan Cc: Maarten Lankhorst Cc: Sean Paul Cc: David Airlie Acked-by: Rob Clark Cc: dri-devel@lists.freedesktop.org Cc: linux-arm-msm@vger.kernel.org Cc: freedreno@lists.freedesktop.org Signed-off-by: Rob Herring --- v2: - Add to commit msg that we're dropping redundant printing of node name. drivers/gpu/drm/drm_modes.c | 4 ++-- drivers/gpu/drm/msm/hdmi/hdmi.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index 02db9ac82d7a..24a750436559 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c @@ -716,8 +716,8 @@ int of_get_drm_display_mode(struct device_node *np, if (bus_flags) drm_bus_flags_from_videomode(&vm, bus_flags); - pr_debug("%pOF: got %dx%d display mode from %s\n", - np, vm.hactive, vm.vactive, np->name); + pr_debug("%pOF: got %dx%d display mode\n", + np, vm.hactive, vm.vactive); drm_mode_debug_printmodeline(dmode); return 0; diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.c b/drivers/gpu/drm/msm/hdmi/hdmi.c index c79659ca5706..23670907a29d 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi.c +++ b/drivers/gpu/drm/msm/hdmi/hdmi.c @@ -579,7 +579,7 @@ static int msm_hdmi_bind(struct device *dev, struct device *master, void *data) hdmi_cfg = (struct hdmi_platform_config *) of_device_get_match_data(dev); if (!hdmi_cfg) { - dev_err(dev, "unknown hdmi_cfg: %s\n", of_node->name); + dev_err(dev, "unknown hdmi_cfg: %pOFn\n", of_node); return -ENXIO; }