Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7208684imm; Tue, 28 Aug 2018 08:06:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYA0IgslwDYGEiUmA6BWNZ1jHcaoPhRCItkML+AoNN7/Aol3ssSWJorHeGA7uMyNNy1Jzcw X-Received: by 2002:a17:902:9a47:: with SMTP id x7-v6mr1974522plv.37.1535468775658; Tue, 28 Aug 2018 08:06:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535468775; cv=none; d=google.com; s=arc-20160816; b=Lqs6+URuA9VVAhAETRE5lvMfTNB/hMU1OuUz+mywqFtgq2PRI1AHj9dwmW+kocAMxN Ga1Nb4fb1LnCf45BZGmu4zbsNrsCiYx0gRrNzDKaM6amNAzgNFSJeGUvstUcEyynwuGV aY5W55whmBPA5mWOKojsanH5c8dJArUY4SOAZUvjhwTwEcLSX3CMwV8ZbDA8hBibu0sv CXKTN31Z3+fZiva8ua7juCAR4loqQCaLfiyJl7VHgtC8ZEspkiSBchkvpCnLzDO0mHZs 7KKdCFBhdk8nL46HChUTaeWJYvrbW/YzpV2IjExYNMoazNQcV0t8rtBTkikqSTpYItBO lQLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=2GXxLl1vXfv7C9aDEdlTUpyffLTu/UbcVNyYi6Tpfyw=; b=rDh6SYPWAJ7EkcEzCTti3VFt6Y9vAWFsC+vxdYjNnJXxwSZdfskg+jSxpHDOspxKRH I4zHiJu9Mle8qLMtznWwYn9/7FfKnuodSjc429B4m0D4HeLe8d8N/X0/CxrXi1lwMcf1 U2Ny/cUESoR/G/vTHz6x6OtTf6wPXo2bUtMN6IpytcU+JbI0YpHLa8nyBRNOqY0wb7cC 46l1vVh1sCsmONJbMa4o1CWyyNNYZSohZOqTvfnPnlDKXRTCa/L3y7JPSObPy5/LzBtm noJSliCo6qyKGfTxGqogMSizAC67P1iKTawBYuq8i06bw00h7fFcmF8+Z7GP/9cNHyWy ML1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XSajK00m; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z16-v6si1198666pgi.252.2018.08.28.08.05.59; Tue, 28 Aug 2018 08:06:15 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XSajK00m; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727245AbeH1S4o (ORCPT + 99 others); Tue, 28 Aug 2018 14:56:44 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:45513 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726807AbeH1S4o (ORCPT ); Tue, 28 Aug 2018 14:56:44 -0400 Received: by mail-io0-f195.google.com with SMTP id e12-v6so1701772iok.12; Tue, 28 Aug 2018 08:04:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2GXxLl1vXfv7C9aDEdlTUpyffLTu/UbcVNyYi6Tpfyw=; b=XSajK00mk/8d94XtdO+SQSv+jWVHZLgK6+kpJr3yYzV36MBtf0hBP61eD2hq9nosNZ nCp0XkznFhL/dnppQxxG87KwG3gdltN20r8m/38P8Ch1eMx6yuZPPYXv4zdF7NeL+Qx9 PDLwzbnsNiN4an973eZHu0VuX526h0XSiryb4HhVjuDdOI2zz/iJ1AOdHtSWfPxW633k /l6ift2si/Dn7P6r1Di0z6mhzseX91on23bbKEIdt92/imnlwtJYy5xhYI6VPQ3n3p6a e8vFjjKhyCnC5+CMMoXwX8GNJdbNaXIPAnzoyA1qdfYjkva3KhynXqiDWGrv+fZYIWOY BJYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2GXxLl1vXfv7C9aDEdlTUpyffLTu/UbcVNyYi6Tpfyw=; b=oJe4MFb4fgeAQXpQurQbtRbAqkSG1xhBjbEw3NYuIe1wTADb3IV+qtXMLOD3i23jUe PpH7tTQrRHDb08EHaVNBdkkeHqt3KQY7zJSFHYVXHGzXJwQKjFXzprGTxIzQSv8ohCoO iVOo07FHVpIRyTSMMrFkOSDe6Lu4jdW9LDGTj2dh8EjoS0n9lRyu0ff2LtNAxd/Y39KD ZKggQSdS01DOuTsGXOrIj4aXC8CTFQ7bc3F2+xHE09ncEMJaw534+e0jnG6xG3f+ezjK WX1ZZQFD7QEMP4C4RXNBujblOXDodIZr/NFB2mrQmxTv0ynOJc30eo3QpK5HMVj0vIaR 7TuQ== X-Gm-Message-State: APzg51A0NLLyGsfCo+3ry7YvWr+u5FDLrlzcVuEf9Yiymke+0zN+cpCM SLFEnWHXR/lalHEVjjINbN2RpesEonMCk8GAu7s= X-Received: by 2002:a6b:ac45:: with SMTP id v66-v6mr1819444ioe.66.1535468677747; Tue, 28 Aug 2018 08:04:37 -0700 (PDT) MIME-Version: 1.0 References: <20180828015252.28511-1-robh@kernel.org> <20180828015252.28511-19-robh@kernel.org> In-Reply-To: <20180828015252.28511-19-robh@kernel.org> From: Rob Clark Date: Tue, 28 Aug 2018 11:04:22 -0400 Message-ID: Subject: Re: [PATCH] drm: Convert to using %pOFn instead of device_node.name To: Rob Herring Cc: Linux Kernel Mailing List , Gustavo Padovan , Maarten Lankhorst , sean@poorly.run, David Airlie , dri-devel , linux-arm-msm , freedreno Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 27, 2018 at 9:53 PM Rob Herring wrote: > > 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 for msm part, Acked-by: Rob Clark (for drm_modes part, I guess there is no harm removing the redundant name) BR, -R > --- > 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 >