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: 147813 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp1299508lji; Fri, 28 Sep 2018 15:50:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV63NCIoOhhVDQRski7qQX7/nGz5N2d+kCKBBWsF751WV077Zhe3t/8SpNELUuoK/sNJQOExR X-Received: by 2002:a17:902:8e8b:: with SMTP id bg11-v6mr603771plb.219.1538175048744; Fri, 28 Sep 2018 15:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538175048; cv=none; d=google.com; s=arc-20160816; b=Fp2j1T7qKoHifJEcDqdFurnYHqfPBDCXUo7oedQvDmCppV+O4KIjbjVtaJHV7LD77L UA0sNM3V0SLeWmFHtSd2z/UxfFMvL5M8J7tHByeXPAOeXCNf1+1APtlNDWc2nZTH8f6t osGvMz+ObWL/vXmv2fwwa8UtrepsQEANExmnVBBj15bF47/2lH9nw2FKbWQN0gkvdCxr XKzodrgPviCbbb9/Pio8/Enm/z2QrXy8kizxo0WLcjfFBPU5uPYh42BxjwV53ZirNAGP rMoT4d3CKZVUJaax2552WVHXV/voiNLYXuUvAHcCBHSmxrvMDkRP9OxVl8xyDrWjfijK 95mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=xF4J/tu6O3fmV6GMsuiSkRFcnUyMm94gMR7WjsV3KQE=; b=E8XTOgJqrrGldy6k6cAgng3lHHjfjwz+RAvWoBuA6hDE/XkpJFAYo5PcHhqT66g+iz 7buiHL7OFdSbHSwAyEGR6oKxnX2cgxgfYdBPihsJW3GoC3p5tyWal6ru3gZoWIqsXNsX chm6Hotx2cuXmfUdc48pMp0yOqntEAELSA8mm8XdhHeUGGZ0rknVZ4jpOkGH5eMWnlqB 8oPxERpaKuV4WW3qF8hLm+uJVBE5ITaR9lFnd08r7Z5GrRtHx+L9Ruw1w1CCLZi+SFwE klBl/4nvbygHfoJtGiOO1hyxHTi+hd8JlXB7GiRjl6LaOmm+2dsAOpnz4Y1kgNkjFUrr oTOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k9-v6si1799678pfg.361.2018.09.28.15.50.48; Fri, 28 Sep 2018 15:50:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726701AbeI2FQn (ORCPT + 13 others); Sat, 29 Sep 2018 01:16:43 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:34082 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726287AbeI2FQn (ORCPT ); Sat, 29 Sep 2018 01:16:43 -0400 Received: by mail-ot1-f68.google.com with SMTP id i12-v6so7599240otl.1; 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=uFF2Z773HW6R18aaODFits+132IOSGrqfS3hbxbRxbYbdsY427ZDFWgtZtPSiR3aA3 oOeAdQ0YsVva+38ZN6hLIWcZ31QZdFT4sNBOj2ay8B7RFsmMuhSzdghvaJ8WbnaJ5Mgt Yd0lXh5/GkbUrHW1VPW0hh4VvYPk1TVfpDO1gFhQue6OkW7rNHu65lNbjQmI0+eVU0HX CMm7LCSon/6wQANYD5LnQJnbIG785uDlQspkMr8z1VkRhOHg0iYxDuvT/Og0YgFw6nRy 7Js9Krj7k2HTXS0wSwtPCx2yxUE2XwCnf7DJGGjjQjRZXwdoGyKTlLNXpRvnI7Q1uOo6 kQSQ== X-Gm-Message-State: ABuFfogScX+DnzDwcGqyKqzzRMIe2XML90QjLWCniYLokNis5ppbZs22 R0Sz14YLrjAy7wjM/WCzgpJDY1aXrQ== 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 Cc: Gustavo Padovan , Maarten Lankhorst , Sean Paul , David Airlie , dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, Rob Clark 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 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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(-) -- 2.17.1 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; }