Skip to content

Commit 2fc9341

Browse files
geertustorulf
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/18ed6fb2bb92860f3af1bc7e5e4a01e9dacf2126.1725459707.git.geert+renesas@glider.be Signed-off-by: Ulf Hansson <[email protected]>
1 parent 987a43e commit 2fc9341

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

drivers/pmdomain/core.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3230,21 +3230,22 @@ static void rtpm_status_str(struct seq_file *s, struct device *dev)
32303230
seq_printf(s, "%-25s ", p);
32313231
}
32323232

3233-
static void mode_status_str(struct seq_file *s, struct device *dev)
3233+
static void perf_status_str(struct seq_file *s, struct device *dev)
32343234
{
32353235
struct generic_pm_domain_data *gpd_data;
32363236

32373237
gpd_data = to_gpd_data(dev->power.subsys_data->domain_data);
32383238

3239-
seq_printf(s, "%9s", gpd_data->hw_mode ? "HW" : "SW");
3239+
seq_printf(s, "%-10u ", gpd_data->performance_state);
32403240
}
32413241

3242-
static void perf_status_str(struct seq_file *s, struct device *dev)
3242+
static void mode_status_str(struct seq_file *s, struct device *dev)
32433243
{
32443244
struct generic_pm_domain_data *gpd_data;
32453245

32463246
gpd_data = to_gpd_data(dev->power.subsys_data->domain_data);
3247-
seq_printf(s, "%-10u ", gpd_data->performance_state);
3247+
3248+
seq_printf(s, "%9s", gpd_data->hw_mode ? "HW" : "SW");
32483249
}
32493250

32503251
static int genpd_summary_one(struct seq_file *s,

0 commit comments

Comments
 (0)