From patchwork Wed Sep 4 14:30:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 825487 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [195.130.132.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AEB571DCB2C for ; Wed, 4 Sep 2024 14:31:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725460268; cv=none; b=KXXFEtNEwDm11Ebjd8is/dwxdbYYHBAJDDdXvSikVquH2FLdBEGjZBlEg14Qq6mv7Fi2CA1/WRoL2s1xs7efC+Q6zVUBFXwxRwZ2d9mNqzbVqs+UfLPOVMdoOu/qedXZQdjMa+hgR7zd4sNsh9yWN1Ut4QpD19F3u4vXuJPe2ck= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725460268; c=relaxed/simple; bh=PvIExtq/8JZw+HWVjYfMbNbIIf4VpurgjJG5pvlFfk8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=q1zyS93tYp0s9ZAu0S4KOtVz9GushvCSkpOv/a3wqxZT6AhQh3IqnQCW0YVrdLLsNzTIGCzgJXD6xWivsHOuU+yQmRBNGoCRgSIOOd5OvpNEx1PQ0s9IcTFlOmawgiL3LW7j7LTcwNyUD7G3bBrRp4CkcLow6cBLZllXVeH3GNA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.132.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:ef52:68c5:eac1:f6b5]) by baptiste.telenet-ops.be with cmsmtp id 8EWv2D00A3m5in101EWv7F; Wed, 04 Sep 2024 16:30:58 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1slr24-0028JT-If; Wed, 04 Sep 2024 16:30:55 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1slr27-004MyI-AF; Wed, 04 Sep 2024 16:30:55 +0200 From: Geert Uytterhoeven To: Ulf Hansson , Viresh Kumar , "Rafael J . Wysocki" , Dmitry Osipenko , Dmitry Baryshkov , Jagadeesh Kona , Taniya Das , Abel Vesa Cc: linux-pm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 3/4] pmdomain: core: Move mode_status_str() Date: Wed, 4 Sep 2024 16:30:47 +0200 Message-Id: <18ed6fb2bb92860f3af1bc7e5e4a01e9dacf2126.1725459707.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Move mode_status_str() below perf_status_str(), to make declaration order match calling order of the various *_status_str() helpers. While at it, add a blank line for consistency among the three helpers. Signed-off-by: Geert Uytterhoeven --- drivers/pmdomain/core.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/pmdomain/core.c b/drivers/pmdomain/core.c index 912bdc131fc0e2b1..2233daaa4168be14 100644 --- a/drivers/pmdomain/core.c +++ b/drivers/pmdomain/core.c @@ -3311,21 +3311,22 @@ static void rtpm_status_str(struct seq_file *s, struct device *dev) seq_printf(s, "%-25s ", p); } -static void mode_status_str(struct seq_file *s, struct device *dev) +static void perf_status_str(struct seq_file *s, struct device *dev) { struct generic_pm_domain_data *gpd_data; gpd_data = to_gpd_data(dev->power.subsys_data->domain_data); - seq_printf(s, "%9s", gpd_data->hw_mode ? "HW" : "SW"); + seq_printf(s, "%-10u ", gpd_data->performance_state); } -static void perf_status_str(struct seq_file *s, struct device *dev) +static void mode_status_str(struct seq_file *s, struct device *dev) { struct generic_pm_domain_data *gpd_data; gpd_data = to_gpd_data(dev->power.subsys_data->domain_data); - seq_printf(s, "%-10u ", gpd_data->performance_state); + + seq_printf(s, "%9s", gpd_data->hw_mode ? "HW" : "SW"); } static int genpd_summary_one(struct seq_file *s,