From patchwork Tue Jul 18 21:42:50 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: 9849827 X-Patchwork-Delegate: rjw@sisk.pl 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 46FD1602C8 for ; Tue, 18 Jul 2017 21:59:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E3F4285E4 for ; Tue, 18 Jul 2017 21:59:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 21619285FE; Tue, 18 Jul 2017 21:59:57 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83BF4285E4 for ; Tue, 18 Jul 2017 21:59:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752864AbdGRV6q (ORCPT ); Tue, 18 Jul 2017 17:58:46 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34977 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752246AbdGRVn7 (ORCPT ); Tue, 18 Jul 2017 17:43:59 -0400 Received: by mail-pg0-f65.google.com with SMTP id d193so4331261pgc.2; Tue, 18 Jul 2017 14:43:58 -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=ZpPoWT7wX3H1z1/v6SCQ/yEryiqIO+P0syMm86Cww9o=; b=p2JSfg9TA3XlRe3NkAXVP3cMMoRHwFXTROhRtWZaV/gEb1wdVjbIIDmQo4SS8e77eV kFg/+kv8ADpcznjfC60rF+6AkiKeQwnUGlc8OYGSu+nabbgZZM/YH6R2FYnIP9pGSdCg 16tFjn2a3b+YALMckzSM0hQPQAYaFFKQCYRdFZWNwGvrPb24ehE9PS5t/6gwaq4Ynvu3 CUYQMxNKwym49eQtrh+C1mbfZN31ybDfqkpyCevfGH4VSJzpZceH3BpGTPQZQG3WfJ7e 5NJFBmrbv2U/XB99etTva/4nl/2x+5rmuBLoWwOSxKp2V5rbvGKNqvwZH92AHhvoCp3m vZeg== X-Gm-Message-State: AIVw112b+62yYypZGJsVKjYXOYw/4lPUxXX8lTQ2pIEe3b1lbuAs2FqR rhspJ1L/cneelw== X-Received: by 10.98.74.92 with SMTP id x89mr3778675pfa.123.1500414238684; Tue, 18 Jul 2017 14:43:58 -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.43.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 14:43:58 -0700 (PDT) From: Rob Herring To: "Rafael J. Wysocki" Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Kevin Hilman , Ulf Hansson , Pavel Machek , Len Brown , Greg Kroah-Hartman , linux-pm@vger.kernel.org Subject: [PATCH] PM / Domains: Convert to using %pOF instead of full_name Date: Tue, 18 Jul 2017 16:42:50 -0500 Message-Id: <20170718214339.7774-10-robh@kernel.org> X-Mailer: git-send-email 2.11.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.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: Kevin Hilman Cc: Ulf Hansson Cc: Pavel Machek Cc: Len Brown Cc: Greg Kroah-Hartman Cc: linux-pm@vger.kernel.org Reviewed-by: Geert Uytterhoeven Acked-by: Ulf Hansson --- drivers/base/power/domain.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) -- 2.11.0 diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 3b8210ebb50e..d0989f9b5e67 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -1743,7 +1743,7 @@ static int genpd_add_provider(struct device_node *np, genpd_xlate_t xlate, mutex_lock(&of_genpd_mutex); list_add(&cp->link, &of_genpd_providers); mutex_unlock(&of_genpd_mutex); - pr_debug("Added domain provider from %s\n", np->full_name); + pr_debug("Added domain provider from %pOF\n", np); return 0; } @@ -2149,16 +2149,16 @@ static int genpd_parse_state(struct genpd_power_state *genpd_state, err = of_property_read_u32(state_node, "entry-latency-us", &entry_latency); if (err) { - pr_debug(" * %s missing entry-latency-us property\n", - state_node->full_name); + pr_debug(" * %pOF missing entry-latency-us property\n", + state_node); return -EINVAL; } err = of_property_read_u32(state_node, "exit-latency-us", &exit_latency); if (err) { - pr_debug(" * %s missing exit-latency-us property\n", - state_node->full_name); + pr_debug(" * %pOF missing exit-latency-us property\n", + state_node); return -EINVAL; } @@ -2212,8 +2212,8 @@ int of_genpd_parse_idle_states(struct device_node *dn, ret = genpd_parse_state(&st[i++], np); if (ret) { pr_err - ("Parsing idle state node %s failed with err %d\n", - np->full_name, ret); + ("Parsing idle state node %pOF failed with err %d\n", + np, ret); of_node_put(np); kfree(st); return ret;