From patchwork Tue Aug 28 01:52:43 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: 10577807 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 2E0A11390 for ; Tue, 28 Aug 2018 01:56:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E90E29A72 for ; Tue, 28 Aug 2018 01:56:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 121E029A79; Tue, 28 Aug 2018 01:56:22 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0FB829A72 for ; Tue, 28 Aug 2018 01:56:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728034AbeH1Fo1 (ORCPT ); Tue, 28 Aug 2018 01:44:27 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:44283 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727494AbeH1Fo0 (ORCPT ); Tue, 28 Aug 2018 01:44:26 -0400 Received: by mail-oi0-f67.google.com with SMTP id l82-v6so1713769oih.11; Mon, 27 Aug 2018 18:55: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:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Q+zF8tFFk/j0HNBZCXJzNNM8VFhzda8Cqqndx/hlaDs=; b=WkqGwoCNeExxTYwCuhQwfXo4mOsfJgUTl3JxpTSCOp/qBmKncdBlWG1/he07KUj3g5 C8AZ6kgLD6FPs7t0Sk+Kmjf8XQ9jxo9y0PfA4X2vg0v4sVjs1vxD/nYZ48HT0IRvOtBl dAthjcVwlm3IrKj3Kht1VwjAYynHrolJp+RYG/0rrf4CnS2WCvcjieb/UjictIBB8hTG /y1sofaC+78Z5XgfLMeUlLDJ3p4Gy+VPtYmbACZgBuCXrynGW/GIvXyQCWsukAd3ZPGY 71+pAhgkhgxPMCsfHypZ2cXv24cUvDqEB7KrmxWPLk+ez/+lFGdWY4kx1oItmzPLcq9A swxA== X-Gm-Message-State: APzg51AOic6ZIvXwcp6hTm8v30QLyksXHxaQTDxADCQDFvCemjc3BeEI ED9QCZMtYLIHCh9CJkElrBtfbfA= X-Google-Smtp-Source: ANB0VdbOnFOtThhxonPHVDxFuyHl1ZUsqDBNt25EbW3/SVBdFlU02ml9V0l0qJqJL7MJFvdTmzo4Kg== X-Received: by 2002:aca:da56:: with SMTP id r83-v6mr1113051oig.265.1535421310641; Mon, 27 Aug 2018 18:55:10 -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.55.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 18:55:10 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org Cc: Ohad Ben-Cohen , Bjorn Andersson , linux-remoteproc@vger.kernel.org Subject: [PATCH] rpmsg: Convert to using %pOFn instead of device_node.name Date: Mon, 27 Aug 2018 20:52:43 -0500 Message-Id: <20180828015252.28511-42-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-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org 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. Cc: Ohad Ben-Cohen Cc: Bjorn Andersson Cc: linux-remoteproc@vger.kernel.org Signed-off-by: Rob Herring --- drivers/rpmsg/qcom_glink_smem.c | 2 +- drivers/rpmsg/qcom_smd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rpmsg/qcom_glink_smem.c b/drivers/rpmsg/qcom_glink_smem.c index 2b5cf2790954..ab23da3d7131 100644 --- a/drivers/rpmsg/qcom_glink_smem.c +++ b/drivers/rpmsg/qcom_glink_smem.c @@ -205,7 +205,7 @@ struct qcom_glink *qcom_glink_smem_register(struct device *parent, dev->parent = parent; dev->of_node = node; dev->release = qcom_glink_smem_release; - dev_set_name(dev, "%s:%s", node->parent->name, node->name); + dev_set_name(dev, "%pOFn:%pOFn", node->parent, node); ret = device_register(dev); if (ret) { pr_err("failed to register glink edge\n"); diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c index 8da83a4ebadc..0dae7c9f4a8f 100644 --- a/drivers/rpmsg/qcom_smd.c +++ b/drivers/rpmsg/qcom_smd.c @@ -1454,7 +1454,7 @@ struct qcom_smd_edge *qcom_smd_register_edge(struct device *parent, edge->dev.release = qcom_smd_edge_release; edge->dev.of_node = node; edge->dev.groups = qcom_smd_edge_groups; - dev_set_name(&edge->dev, "%s:%s", dev_name(parent), node->name); + dev_set_name(&edge->dev, "%s:%pOFn", dev_name(parent), node); ret = device_register(&edge->dev); if (ret) { pr_err("failed to register smd edge\n");