summaryrefslogtreecommitdiffstats
path: root/drivers/pmdomain
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2024-09-04 16:30:47 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2024-09-13 13:39:27 +0200
commit2fc934190e7118f7c7ddd748302df44bde1015f6 (patch)
tree8dd1a8bd590c11a333df2a7fba3d17abfbd487db /drivers/pmdomain
parent987a43e89ec67cc68518c0558db42ba542581597 (diff)
downloadlinux-stable-2fc934190e7118f7c7ddd748302df44bde1015f6.tar.gz
linux-stable-2fc934190e7118f7c7ddd748302df44bde1015f6.tar.bz2
linux-stable-2fc934190e7118f7c7ddd748302df44bde1015f6.zip
pmdomain: core: Move mode_status_str()
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 <geert+renesas@glider.be> Link: https://lore.kernel.org/r/18ed6fb2bb92860f3af1bc7e5e4a01e9dacf2126.1725459707.git.geert+renesas@glider.be Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/pmdomain')
-rw-r--r--drivers/pmdomain/core.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/pmdomain/core.c b/drivers/pmdomain/core.c
index 5e6aa8747303..c2d2aba4c3e6 100644
--- a/drivers/pmdomain/core.c
+++ b/drivers/pmdomain/core.c
@@ -3230,21 +3230,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,