Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6552903imm; Mon, 27 Aug 2018 18:54:52 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYJP4WIzPVnPGzY1KYEvRZrwhtWOzpb/7WlGYm8PoO1FTesaA5A9HYHm5Xi3E//Wnu1R5Zx X-Received: by 2002:a17:902:720c:: with SMTP id ba12-v6mr15368274plb.236.1535421292163; Mon, 27 Aug 2018 18:54:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535421292; cv=none; d=google.com; s=arc-20160816; b=hUXj6tBQ3h88pnnedZRI9inhtejLYKium2XHRlH5Te2WOYzvgc7asIVUujR79AfAiD rE8HOfhDq8pXaz5La/zlalmPAJo2smtPtJjGmKK62rmWwxscnQt+xfa4S2z27ujmHVZv KOrZrzZzp0fMdJccGhYlKrjWk+NzJdZF13Ov2LKuNWa/ZNkKWd2u1oHLjTjyM/OmnUGL iZsGfBs3b3X+sGOadhiPsWox1K558fpFYyBTF6wjd+ihtk8tahCCrgWjW8UEBEbTMwDA rkEWtmKm+eGhc22WDJjtsbm/f6HEH2898P8MHS/4IuRcw3n6xczryevxtLNbEGWXH94P C6pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=QzDXKJRZ1NfXO/zchmL3RpkdyVIVMbNPxhZUYRavYSk=; b=nwwEHlH9BU+O8odt+tY1P+k+ryHcASxnvxul0dzqGBAPFqT1jvNuyeRKeqISwiQEJ3 B3sWu958zthRF9P1/zrIMLzKR+CIcKGFDN+45GgQ82nhFfbclnVuJ5dnzSz5t/lZnFIU ySF6BE3qjdeCT6gQVtyAV8Sk9Fp10SgKe1HPXNGPvCBmY5ZoEtAe6mdk8Bq0l+o4zkrp 3cuBBUKlWzCH5AhXj4czMt+8HaR/8Wg8QqnY8WI2/cX/hJq9XgIJ6XswvFUPgFsRWtnt EqL1QBUGl6YhEzKEVNel36HDIJZgl35J9RnFppNqGngVa3PC1AGu7O79xlNs08tt7Am9 krAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 c2-v6si905851pge.124.2018.08.27.18.54.37; Mon, 27 Aug 2018 18:54:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727552AbeH1Fm2 (ORCPT + 99 others); Tue, 28 Aug 2018 01:42:28 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:45045 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727495AbeH1Fm2 (ORCPT ); Tue, 28 Aug 2018 01:42:28 -0400 Received: by mail-oi0-f67.google.com with SMTP id l82-v6so1707320oih.11; Mon, 27 Aug 2018 18:53:13 -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:in-reply-to :references; bh=QzDXKJRZ1NfXO/zchmL3RpkdyVIVMbNPxhZUYRavYSk=; b=ZtLeAM2xv47ED9wtWsSEAtglHm6CfF0lkI9y8zBvDtxTDQMJTxysMtKywg566wbKBt zBgrB2w+QZRDTdPy2bR4GJ0kGAbiEpP826UvESaNuyF8f0WLDqLuODMwxkmmg/EV6Dni sywon6wT5HwK/URf9sb7iiWmadCzFoKDHmxbl5j+x4XDrn1tgOcMbda2X0AxvLJ0uKo8 nDLUYCZpWvSsoXRR5YzjQFwuNeMmFHGOasyijtPPyQvppjA5iYiihwUuH7JxX/lz4hth 1l/lXrI9bis6TNiX2SFohBNTG0lJLAURizPU+EmYu3P983GZGBjE858Ec1+tQdor9vFS dGEg== X-Gm-Message-State: APzg51CIv3+Sid8ANWEISSNCVZWDl7tbgjxqKF6BJP77aBlDz7e71kLq wNv50abC+qwS1rw2Dl2339dFIjc= X-Received: by 2002:aca:3003:: with SMTP id w3-v6mr354779oiw.231.1535421192823; Mon, 27 Aug 2018 18:53:12 -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 n71-v6sm1652696oig.48.2018.08.27.18.53.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 18:53:12 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org Cc: Gustavo Padovan , Maarten Lankhorst , Sean Paul , David Airlie , Rob Clark , dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org Subject: [PATCH] drm: Convert to using %pOFn instead of device_node.name Date: Mon, 27 Aug 2018 20:52:20 -0500 Message-Id: <20180828015252.28511-19-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180828015252.28511-1-robh@kernel.org> References: <20180828015252.28511-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Gustavo Padovan Cc: Maarten Lankhorst Cc: Sean Paul Cc: David Airlie Cc: 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 --- 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; } -- 2.17.1