From patchwork Tue Jul 18 21:42:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 9849631 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1549660392 for ; Tue, 18 Jul 2017 21:45:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F405C285F7 for ; Tue, 18 Jul 2017 21:45:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E89CA285FD; Tue, 18 Jul 2017 21:45:30 +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=-1.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5BEC2285F7 for ; Tue, 18 Jul 2017 21:45:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=e9to76IQGt7HXVHr9nub22aX/+2mHp3FWFFt4XPmdsg=; b=dQV 36c/MwMO8UJVQP/ROAwtq88iZyZeE7viCg5g9LdOfeftmHeQGPVog1+k+SYSn74ettSTDmspH+dSp 6oLWIqvU3ydXPcgzKCP0O4OWKK0YUfC3x8LBceMviO2J/1KTUJkrou5R42meXx+lUS11FLULBqvhS hBpQBzWIi0bmI6tJfYzPYSsvHzX/hL2g787pjZYqipLP9ZqZyxBzl17lIWq3H61Iic930Y2LFs8y1 SlhAle0IiIbb9rt/BFRH9GsOX0VgUiTbU6Ssd7BHDc7rAQGqKEb99od+m3rqJnWA+gL7Caq+M4cBF Mv1SirlNGQLcQaS5wPj7k1j5+DFa1AQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dXaJ5-000443-3F; Tue, 18 Jul 2017 21:45:27 +0000 Received: from mail-pg0-f66.google.com ([74.125.83.66]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dXaI1-0001uq-LQ for linux-arm-kernel@lists.infradead.org; Tue, 18 Jul 2017 21:44:36 +0000 Received: by mail-pg0-f66.google.com with SMTP id d193so4331492pgc.2 for ; Tue, 18 Jul 2017 14:44:06 -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; bh=Cp6wQ4XgXAVPZ+YeoI61WL5uqh+0gRvC9w7t93uXBxg=; b=iGl82kgra7udZKoGC82lnnQwvjep06j+yD2Zf2A9571uIRGrLbr0WXkOG2TqsesG2H MFLFIVIbAeVxV8J7ZZuAPDLDnVxGg+dXB+Hkh3xhb5Be63bNfbgKL+JjVs9VhjaOG2pO iGJbrgyH84jmMbGWAWHBPHsCBM3WmHHUs3vAI2WG4R06XkmbRYdHrs1LkSeRQH55Iqw8 ZoR7/aLJirpnpR2t6rkndAm6EEiOKa98WdFEZD8IpJctRJfZKdK3BdJ+6HLpzFJT8SBa UhJD5b44Spiqdfs1k2LWsLLFiNN66XbEEagdVbYRhA5Np9xSa1IpYfSBg5DTQNnFaJPn P+Zg== X-Gm-Message-State: AIVw112PXUHF1vm4pkOLsDnj0SIdo8jSRvkWfJ6OvVMjXYiHa1a7cuHg GsXhGBESNpyz2Q== X-Received: by 10.84.163.75 with SMTP id n11mr3907820plg.186.1500414245797; Tue, 18 Jul 2017 14:44:05 -0700 (PDT) Received: from localhost.localdomain (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.googlemail.com with ESMTPSA id r207sm7186560pfr.106.2017.07.18.14.44.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 14:44:05 -0700 (PDT) From: Rob Herring To: "Rafael J. Wysocki" Subject: [PATCH] cpufreq: Convert to using %pOF instead of full_name Date: Tue, 18 Jul 2017 16:42:54 -0500 Message-Id: <20170718214339.7774-14-robh@kernel.org> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170718_144422_252274_C10ED4C8 X-CRM114-Status: GOOD ( 10.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, kernel@stlinux.com, linux-pm@vger.kernel.org, Michael Ellerman , linux-kernel@vger.kernel.org, Patrice Chotard , Viresh Kumar , Paul Mackerras , Benjamin Herrenschmidt , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Patrice Chotard Cc: linux-pm@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-arm-kernel@lists.infradead.org Cc: kernel@stlinux.com Acked-by: Viresh Kumar Acked-by: Patrice Chotard --- drivers/cpufreq/pmac64-cpufreq.c | 2 +- drivers/cpufreq/sti-cpufreq.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) -- 2.11.0 diff --git a/drivers/cpufreq/pmac64-cpufreq.c b/drivers/cpufreq/pmac64-cpufreq.c index 267e0894c62d..be623dd7b9f2 100644 --- a/drivers/cpufreq/pmac64-cpufreq.c +++ b/drivers/cpufreq/pmac64-cpufreq.c @@ -516,7 +516,7 @@ static int __init g5_pm72_cpufreq_init(struct device_node *cpunode) goto bail; } - DBG("cpufreq: i2c clock chip found: %s\n", hwclock->full_name); + DBG("cpufreq: i2c clock chip found: %pOF\n", hwclock); /* Now get all the platform functions */ pfunc_cpu_getfreq = diff --git a/drivers/cpufreq/sti-cpufreq.c b/drivers/cpufreq/sti-cpufreq.c index d2d0430d09d4..47105735df12 100644 --- a/drivers/cpufreq/sti-cpufreq.c +++ b/drivers/cpufreq/sti-cpufreq.c @@ -65,8 +65,8 @@ static int sti_cpufreq_fetch_major(void) { ret = of_property_read_u32_index(np, "st,syscfg", MAJOR_ID_INDEX, &major_offset); if (ret) { - dev_err(dev, "No major number offset provided in %s [%d]\n", - np->full_name, ret); + dev_err(dev, "No major number offset provided in %pOF [%d]\n", + np, ret); return ret; } @@ -92,8 +92,8 @@ static int sti_cpufreq_fetch_minor(void) MINOR_ID_INDEX, &minor_offset); if (ret) { dev_err(dev, - "No minor number offset provided %s [%d]\n", - np->full_name, ret); + "No minor number offset provided %pOF [%d]\n", + np, ret); return ret; }