Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6555048imm; Mon, 27 Aug 2018 18:58:22 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda4jksuhCT9b9Gtnrj2BL91bnVf+g6m/KNxf8ws8tCn5++Z7JuLgEsaoRGWqn3IXCymRzhN X-Received: by 2002:a63:c60:: with SMTP id 32-v6mr14512579pgm.155.1535421502253; Mon, 27 Aug 2018 18:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535421502; cv=none; d=google.com; s=arc-20160816; b=xM/2o+qtn+YADJH4SD2V2CKeEEy4pxtLIfdCituCaGDidWtzs5t/ge9gzNSKMNSmAe MuqXqN8RgCzThmE7hpdXfQZwWtHIpsPWz04OzA20D5sp9YLb/2m6oyHOYKFXi1qDhkPB I6g8zM+euSqbYptEfnhEgO50TyX/6/CoH/jeNLNu/Dm72lhNIx3ruxYctIqiC4URvjyS uEOOqu+Yoj4UuWqJMzxWGv+hXWpvKeUctSqUrblPMAjVEzn8Uaf8jLnD1EbLO91wJh4o Rzi87JH79THMvqQuRMyKZOUUbES/wlfljhgg31qR2EujbeXmLRnJJViL1CdwYrj7DgfM dhww== 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=Q+zF8tFFk/j0HNBZCXJzNNM8VFhzda8Cqqndx/hlaDs=; b=tyAWhaRGmVHqawvjBS2TckWr3OlAtVKrmjh0XSMthr3r2lTWf+awMxcMUNlK5jOKVL RPHauVLim85DeqLVeu0VRZHqfVs3jD4B1gIL0+8f4wrub6Nsy13PWGTQ9Hd1KbygLigY 3ah2pQlXtOKvJmaniUXW0EYZKhBkqtmQmbXBHez3vIVmhdhx6SdGTarDC+SXbhjzmXZM 2lYNQEUXIWOS5JiiZ2weT5Z/EiS4tLfPAYc0PEnxsEu7qJgsTxBAggMH1L4ucMEctZCH 0OgUgtkm+fLGhKL14pfBrFBS9sWFYo1er1NfhDDhcJBTf6aIyHvMBu8JqjRnh3SSadQN wF8w== 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 t7-v6si741961plo.165.2018.08.27.18.58.07; Mon, 27 Aug 2018 18:58:22 -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 S1728044AbeH1Fo1 (ORCPT + 99 others); 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-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-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: 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"); -- 2.17.1