From patchwork Tue Jul 18 21:42:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 108189 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp6479621qge; Tue, 18 Jul 2017 14:44:19 -0700 (PDT) X-Received: by 10.99.96.202 with SMTP id u193mr3760026pgb.121.1500414259233; Tue, 18 Jul 2017 14:44:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500414259; cv=none; d=google.com; s=arc-20160816; b=yayzSLAYKibet+56C7VjtU0eSsTPQdCaItPVhEFJ63Etvb2RnKudf9onZEbeX2Bxk4 3iUz0imMiafpDRv/+VgU0dDirw4xp4hhZ7wGrspobVukzVwKqht3DEjxR3qujXRn94Q0 AnRucfS7nt8ljK8mbrf2Djfn5q/XOQXD68rWrM0T8x7SJecfPURvdRsiOOZvKXfKhmcZ sJ9LNrZ9kTHdoLNXIOdzX16ds6oxbhJHo3M/aMfyEM0QmQAT5WA2g8z84u1Dwf+WATBx jyeydcyR/g7WMbwpkdKqrWVl1oAOhjqQGel83t9VI1sD6+IJND21KwrdrtdW+6x7oDDS Uz5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=MtrsKT8mchR/aSwgO5m9u8sdyhym2Jg7dlv072Wl+aM=; b=aAlFfbPDpuYduQ+mV1YWsHeutyziTPaqSzvQsNdyrurkKYXP+3i8r4LLSPpN5+T+YC smoKJLda+Fcu3AOYcX7QdoiKMh0ZKdruiUrp4VLzb+BBLiePH8TcOqQqJo0n62ICLoHt UJo/3JaVnapRXuYV0P8eDY3KpHA89DKChmYvQpy6PqTEoKEeRt0ph7RyAVzQho7K1vnv 62s0XvHRWa+4y4ctUpTOWyOoMKZ8xmT7aVruAmAzcful49DPPwzC8kj85C7HblbEFXUb Js3D2KnsWSjvx0t1t77nTu9gKKfjYfMQLjrkNmUYskIBiVUafBCIJ1AhXNCnx4MRqAvF BWKg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j63si2531547pfc.364.2017.07.18.14.44.18; Tue, 18 Jul 2017 14:44:19 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752664AbdGRVoN (ORCPT + 25 others); Tue, 18 Jul 2017 17:44:13 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33048 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752544AbdGRVoH (ORCPT ); Tue, 18 Jul 2017 17:44:07 -0400 Received: by mail-pf0-f193.google.com with SMTP id e199so4070587pfh.0; Tue, 18 Jul 2017 14:44:07 -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=MtrsKT8mchR/aSwgO5m9u8sdyhym2Jg7dlv072Wl+aM=; b=HqpbBLd1cDTrJXnG1Xe9W3mN/l1zTZC6jLImZdJKfCENoajjksADtn8XYF0icSaN0i 2AMsQToncFUbN0B8/IvrGYQES/VOnDxSsp4io8XzkpoCENVrwsGdJvpWHoB77ysSk/sP e4n+V6m44rSc54qknLTorae1GHPCr4mWBjQQCycTUGnHRSFIovMAindokps/jx51OtO+ BMAw3hRQS/txJXu53NX1CkJkCN6LWOKJhMUdIL3Md0u0wP5vRbtiCytOGSLRqRQHttTQ ZHuyRSgPBDst8YLFlIbTI0JBAPx9ylkeRTDNBvZM5T1QiVo43g7a5bcgME9eHCFoUH6X EEaA== X-Gm-Message-State: AIVw113lqekouCcycukAi0ut3kfCUXAf3imcm2zcYbwoavNk8wicIKsl 3RuD9bOuLRP2Eg== X-Received: by 10.84.217.211 with SMTP id d19mr3845297plj.121.1500414247075; Tue, 18 Jul 2017 14:44:07 -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.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 14:44:06 -0700 (PDT) From: Rob Herring To: "Rafael J. Wysocki" Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Daniel Lezcano , linux-pm@vger.kernel.org Subject: [PATCH] cpuidle: Convert to using %pOF instead of full_name Date: Tue, 18 Jul 2017 16:42:55 -0500 Message-Id: <20170718214339.7774-15-robh@kernel.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: Daniel Lezcano Cc: linux-pm@vger.kernel.org --- drivers/cpuidle/dt_idle_states.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) -- 2.11.0 diff --git a/drivers/cpuidle/dt_idle_states.c b/drivers/cpuidle/dt_idle_states.c index ae8eb0359889..bafd4dbf55d4 100644 --- a/drivers/cpuidle/dt_idle_states.c +++ b/drivers/cpuidle/dt_idle_states.c @@ -53,16 +53,16 @@ static int init_state_node(struct cpuidle_state *idle_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; } /* @@ -75,8 +75,8 @@ static int init_state_node(struct cpuidle_state *idle_state, err = of_property_read_u32(state_node, "min-residency-us", &idle_state->target_residency); if (err) { - pr_debug(" * %s missing min-residency-us property\n", - state_node->full_name); + pr_debug(" * %pOF missing min-residency-us property\n", + state_node); return -EINVAL; } @@ -186,8 +186,8 @@ int dt_init_idle_driver(struct cpuidle_driver *drv, } if (!idle_state_valid(state_node, i, cpumask)) { - pr_warn("%s idle state not valid, bailing out\n", - state_node->full_name); + pr_warn("%pOF idle state not valid, bailing out\n", + state_node); err = -EINVAL; break; } @@ -200,8 +200,8 @@ int dt_init_idle_driver(struct cpuidle_driver *drv, idle_state = &drv->states[state_idx++]; err = init_state_node(idle_state, matches, state_node); if (err) { - pr_err("Parsing idle state node %s failed with err %d\n", - state_node->full_name, err); + pr_err("Parsing idle state node %pOF failed with err %d\n", + state_node, err); err = -EINVAL; break; }