From patchwork Thu Jun 14 05:23:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 138516 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1646328lji; Wed, 13 Jun 2018 22:23:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLqEkFTSJ2hFNLFDxWkkdz/NklTFfO+OA6tIo0J4hup01FiNQvfZKiUQdIBf8rYMKiaz+19 X-Received: by 2002:a62:fb05:: with SMTP id x5-v6mr7941322pfm.210.1528953823478; Wed, 13 Jun 2018 22:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528953823; cv=none; d=google.com; s=arc-20160816; b=Kg1rqIXxH7dRus2xSi0dVP+PwSawdlhFKfOmClhGXdAQ9munAcRep0Ijr8iqBOwrFn g9DmOgKuA150xbwf9V4s29yNuv1hAOgrTxKRLjZS8+66/s9+YmqGrPnmo6NEh7Zo7eqz +XGzmf9N+eq9X2F58VLg3EMc8BjsNtqDpSQhxthC5jLYYRXg/A7PPL7/JQXSIBG8f7cn isFkYXWwYYI/4RM4QAebXVmO00GchH30j1uqjIc4PAkrhEW1J+azqzV4N+OGR1pWH3lO 2OeB89mdSR+tySJesK0S3dFTIV9jpkyYGHt4DSnjEwWDQaY3rCXk/gtwlIH8xxcqK50S 00FA== 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 :dkim-signature:arc-authentication-results; bh=riQdcz6+FOz8WRGOM+lvtaahJNw9AF7mKMiTRAgGwYE=; b=d/K5Z3fnl4EORawiiAb6kLO3tkz1xuhWB39xMpKWuOcVNzUq5pJU5UWZ/kwey2qt5O JGaEHtfXtigKg5t6lUT61ZgmQlwMeocq6aJcO/R0raJLl/u+vgIw5UmfLLDrq1yudLKZ mTH0lgdKXe4k2nLbQRmN+fSG9GdXsLPq1gFpNARj8/1JVPaDONM5ITXryy5NM0iTUnzu enlUCO0p8bbnCKqnNB1SSDh4Qx0FokHQalI9w2CuDowXXxv+KUFC1ga2TIrr1cfRdcVK 6wvKI+Q02rZxPMxmVY85RAL9ShzrB7AFHenHxKLGQI56TsINHsbYHS0GKsPthELNQ2KS XaTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A0LO6+Rj; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f20-v6si3716571pgn.464.2018.06.13.22.23.42; Wed, 13 Jun 2018 22:23:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A0LO6+Rj; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751872AbeFNFXl (ORCPT + 10 others); Thu, 14 Jun 2018 01:23:41 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:38019 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751560AbeFNFXk (ORCPT ); Thu, 14 Jun 2018 01:23:40 -0400 Received: by mail-pl0-f68.google.com with SMTP id b14-v6so2843861pls.5 for ; Wed, 13 Jun 2018 22:23:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=riQdcz6+FOz8WRGOM+lvtaahJNw9AF7mKMiTRAgGwYE=; b=A0LO6+Rj6awRHUsiZyCwfyM6oDmWvXsIV4PDutDV9+l3zdcyim+0h2mRTD22dkHPRx wqnBx8zbpz5mr7w3GTMaxUinsdqYLGldQGy3fOyR0gKK0aEJZzK+K298S+4SVcthAGhC GjMbsree5YQc2pEw9RjmsDSPYxHuGETzKTb04= 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=riQdcz6+FOz8WRGOM+lvtaahJNw9AF7mKMiTRAgGwYE=; b=L1k8xip5KMhxkBQuixQUOcHYIjidZEWBywe3S5H6nBeYJlbQmfzrTp7eUcKv0DAkJh CgXrOFkz8MdTY8hGUvB7n49R0BCUHlxVmpoXFtVFjflj/4qI99eVUgxMZ2ZT8Il4/ovN BRA8OcpSNVBeelUdzGgux97RwwGuNpr4A8QZFDutbzYVWh61/r/2Dv2EQ1+T2j7pIz2U pw0rl0etGZjXzM93jm0ztobcYB4tt/DmJ5K5eTzYjnR97DV6NU9OHk0pFTzeu5rbHpKV VUXSpthZvKlb2yjGKwE77Ob5DNfx7efcYjB8GbDKVVMANod4WFCdfCktCU5S0M+HImIJ 8WQg== X-Gm-Message-State: APt69E0rFk5KNYsRarR5/kRZZ4iMfz+mefHp4dKk/DI7VxpUHzHDcqpb sxZIYO9s0cyxdXu5SdmraEpo8A== X-Received: by 2002:a17:902:264:: with SMTP id 91-v6mr1243922plc.341.1528953820297; Wed, 13 Jun 2018 22:23:40 -0700 (PDT) Received: from localhost ([223.226.91.101]) by smtp.gmail.com with ESMTPSA id m21-v6sm4970891pgv.27.2018.06.13.22.23.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jun 2018 22:23:39 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Kevin Hilman , Ulf Hansson , Len Brown , Pavel Machek Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , Rajendra Nayak , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] PM / Domains: Rename opp_node to np Date: Thu, 14 Jun 2018 10:53:33 +0530 Message-Id: X-Mailer: git-send-email 2.18.0.rc1.242.g61856ae69a2c Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The DT node passed here isn't necessarily an OPP node, as this routine can also be used for cases where the "required-opps" property is present directly in the device's node. Rename it. This also removes a stale comment. Signed-off-by: Viresh Kumar --- drivers/base/power/domain.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) -- 2.18.0.rc1.242.g61856ae69a2c Acked-by: Ulf Hansson diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 4925af5c4cf0..c298de8a8308 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -2487,10 +2487,9 @@ EXPORT_SYMBOL_GPL(of_genpd_parse_idle_states); * power domain corresponding to a DT node's "required-opps" property. * * @dev: Device for which the performance-state needs to be found. - * @opp_node: DT node where the "required-opps" property is present. This can be + * @np: DT node where the "required-opps" property is present. This can be * the device node itself (if it doesn't have an OPP table) or a node * within the OPP table of a device (if device has an OPP table). - * @state: Pointer to return performance state. * * Returns performance state corresponding to the "required-opps" property of * a DT node. This calls platform specific genpd->opp_to_performance_state() @@ -2499,7 +2498,7 @@ EXPORT_SYMBOL_GPL(of_genpd_parse_idle_states); * Returns performance state on success and 0 on failure. */ unsigned int of_genpd_opp_to_performance_state(struct device *dev, - struct device_node *opp_node) + struct device_node *np) { struct generic_pm_domain *genpd; struct dev_pm_opp *opp; @@ -2514,7 +2513,7 @@ unsigned int of_genpd_opp_to_performance_state(struct device *dev, genpd_lock(genpd); - opp = of_dev_pm_opp_find_required_opp(&genpd->dev, opp_node); + opp = of_dev_pm_opp_find_required_opp(&genpd->dev, np); if (IS_ERR(opp)) { dev_err(dev, "Failed to find required OPP: %ld\n", PTR_ERR(opp));