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 X-Patchwork-Id: 145277 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp610541ljw; Mon, 27 Aug 2018 18:56:17 -0700 (PDT) X-Google-Smtp-Source: ANB0VdawDnmv+pDe6yE+szMgdAfZQI471yKUuAeXkuo34fshd/AoAgQPcqFZRS35ctktVxtTStt+ X-Received: by 2002:a63:ed4f:: with SMTP id m15-v6mr14334882pgk.147.1535421377341; Mon, 27 Aug 2018 18:56:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535421377; cv=none; d=google.com; s=arc-20160816; b=dUX6xOGEbW0y9jVw4SdrnNp7Dy0L9BZCtZ3KYisIdi6QgQLYRjceqzXhvdHLYwIEUq 5sOjuyMk85tIx7JBpmpmXFzdYZn1qpiZJProx9UgLfCyIqbcNlibHDTtHYTCpa4OpVnL 00DQllWhvjcOuQ4QHP/FicjmM9yDNZMOZm3/7qxoFwOJoX6V5aJUAWLB1/8vd8BCFV0F 20+Lh2oaSQ117gLcAh2MIbymiyZguhoYhS3TQ4QQvNdzeiTebh9K5q59gwz42lOPZfES e9tTrfrFqMaQ5TN5JQOGtDQIvO4ALiHKfdGJz4RdT9BCQo+MrXnMQawCOTgBpvcoS+hc WPyQ== 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 d9-v6si989940pfk.166.2018.08.27.18.56.16; Mon, 27 Aug 2018 18:56:17 -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 S1728051AbeH1Fo1 (ORCPT + 32 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(-) -- 2.17.1 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");