Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6555726imm; Mon, 27 Aug 2018 18:59:27 -0700 (PDT) X-Received: by 2002:a63:26c5:: with SMTP id m188-v6mr14001654pgm.200.1535421327464; Mon, 27 Aug 2018 18:55:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY+zAslxnKFq32D139D4kWFi9LAToMFymX/W24D+s7R2gVxDKs24ci59Tuermr94eWEr5ka X-Received: by 2002:a63:26c5:: with SMTP id m188-v6mr14001635pgm.200.1535421327025; Mon, 27 Aug 2018 18:55:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535421326; cv=none; d=google.com; s=arc-20160816; b=wyFuEibtO9WHN+6wGsI3eEqRYtRW2E9cxTt+mI8UsBTMxwzoNz3fwX4snVjqZuNoh9 4nWv/ctadsxGj/s5K+zd9RjMQs+PRdbVi5ghyV76wRzL1akgvb29/6kwQ0OWJOQ/Kb3w CC4q5KPagGec7uC3KETaUP9SDOVCMJbKptaYpUbFRdHG+w08BM3Iqf038kQSvmGoAKjE 6PmB+nCtyMCxHZXZ6K3e1znHfYon3gLUAVLOlBypd7/ldp9VKoTN5by/o3SGrTEhV9yc +6orNZSECv3kXoX+H2e3sy3CL9Y4/LNj2kyMb0ANoFgaX+DC3H+Y3rrM/a8k2KTvsmHU 8xbA== 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 g12-v6si874525pgk.636.2018.08.27.18.55.11; Mon, 27 Aug 2018 18:55:26 -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 S1727621AbeH1FnA (ORCPT + 99 others); Tue, 28 Aug 2018 01:43:00 -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(-) 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; -- 2.17.1