From patchwork Tue Aug 28 01:52:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 145249 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp608725ljw; Mon, 27 Aug 2018 18:53:48 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY5bGlCI9ThiHLMbA47uKD/4bcxpaLy41tmsUjQm4f/N2scWEsUUV8rRAZhV/VSsrVrSr0r X-Received: by 2002:a63:28c7:: with SMTP id o190-v6mr14450381pgo.84.1535421228119; Mon, 27 Aug 2018 18:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535421228; cv=none; d=google.com; s=arc-20160816; b=cv5R1fRqUzIIVprPviabFWitShZydY1lEVnGnA0JODVp7GAMMsSNPjUS38EWfNhs5J oovZ3FCft/tJ/OP7DyQcNQrVEnsAXSI0PTyxQynxcpxxt+t26FiFgu05mbCVqJMjnlpf x9kvh1rOjTZGhobjl3uiFPbFD8iNnrPJ04i0k8yYxC99kXe1hXES2TWPbW1rGrGOYozq tPVGyJl+HMVj0o42qepGJS93HRM42bR30tGUMqa7L5zzVqvaw4kUfylccBPphO/Hf2XS OTsfTRVsOC6yU53ZaSETmPcGYggNmQhG7QEVD4OtcXCBIZH+nPvYAsFnFolXUAYraVT5 4V6w== 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:to:from:arc-authentication-results; bh=Hg3/aCmTTKeUM5DPz4uRGx9Qz6ER5C2bJUMxpFVPgSE=; b=N4gqhi8k4JvAlMiCJr5SzqhPd2YGHTI050EHZcO5WELOtXlPVnV0U/Yv9C+se0W1c6 fVcEBtuILJg5LAXrEP/mbwBEbzmj25Au03cN2VqsnL5P3nRvv8dq8FIZXTiKMYFhzdis +ShOJ+SqZppuezmK1eDwnrxAQX8JJkTx3o4krApbRmGYjIZFbaH2oKiAZ6QBVvMe7P8V YAjQwJRHvgG/2YCj642aKyX7D98WzDAuEf9uY4qTL1SWFk7C9vLXoMSvujonE7+3VXfS u4Uw6KGnrY/jpLCigSVnFxKhg1iWH7R181n7jUzOL5yVyV59/WcYKjlQyXMw2Cw95eRr NkPQ== 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 k18-v6si929335pgl.364.2018.08.27.18.53.47; Mon, 27 Aug 2018 18:53:48 -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 S1727625AbeH1FnB (ORCPT + 32 others); Tue, 28 Aug 2018 01:43:01 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:41019 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727459AbeH1Fm0 (ORCPT ); Tue, 28 Aug 2018 01:42:26 -0400 Received: by mail-oi0-f67.google.com with SMTP id k12-v6so1738726oiw.8 for ; Mon, 27 Aug 2018 18:53: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:subject:date:message-id:in-reply-to :references; bh=Hg3/aCmTTKeUM5DPz4uRGx9Qz6ER5C2bJUMxpFVPgSE=; b=Efx9igfw5Im1r6YLQEIZdKURmXmFRxgARw/9anivg/q6BVBVSgbxbnDn842qX+qWT7 Rtw/UMOE/2Q9OAWIoF8p0a0lqhoqPzGyir1XiWNtZbAN8riMI7LYWNWoAzN4vTJXPlV5 JzG601ql87q5zwGQJfZ4F2t0tPqhVJ7UnCBFiCWLdxkrr2ArsN6isyJmHA+4utEJqk00 smE7+6Mx+7cOyzHVr2RD1dtdB3d534mp7dHPhmXCVPtwcmk9pIjIlqxJwsiDw6RxOu3N K+/+ioO9v4NiJoovRZwgRWQc4tsoyixEF7GE7YhkZaO6/VIwbiXKJ6Un0q2IqaETPgJk uRlQ== X-Gm-Message-State: APzg51CY/oAeZkxwwLVJ6p822bBHnqOZFYmpfX6QyVTvEcFw8PRdnMU/ 9GVic9TMHGTB0spDDIX64fJxzVc= X-Received: by 2002:aca:3a57:: with SMTP id h84-v6mr1073480oia.336.1535421190729; Mon, 27 Aug 2018 18:53: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.53.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 18:53:09 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org Subject: [PATCH] firmware: Convert to using %pOFn instead of device_node.name Date: Mon, 27 Aug 2018 20:52:18 -0500 Message-Id: <20180828015252.28511-17-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. Signed-off-by: Rob Herring --- drivers/firmware/scpi_pm_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Acked-by: Sudeep Holla diff --git a/drivers/firmware/scpi_pm_domain.c b/drivers/firmware/scpi_pm_domain.c index f395dec27113..390aa13391e4 100644 --- a/drivers/firmware/scpi_pm_domain.c +++ b/drivers/firmware/scpi_pm_domain.c @@ -121,7 +121,7 @@ static int scpi_pm_domain_probe(struct platform_device *pdev) scpi_pd->domain = i; scpi_pd->ops = scpi_ops; - sprintf(scpi_pd->name, "%s.%d", np->name, i); + sprintf(scpi_pd->name, "%pOFn.%d", np, i); scpi_pd->genpd.name = scpi_pd->name; scpi_pd->genpd.power_off = scpi_pd_power_off; scpi_pd->genpd.power_on = scpi_pd_power_on;