[PATCH v2 1/3] PM: core: Rename module parameters prefix to "power"

From: Tzung-Bi Shih

Date: Thu Jun 04 2026 - 05:19:37 EST


Currently, the module parameters defined in drivers/base/power/main.c
use the default prefix "main" (derived from the filename). The prefix
"main" is too generic and non-descriptive for power management
parameters.

Redefine MODULE_PARAM_PREFIX to "power." at the beginning of the file
to group the module parameters under the "power" namespace instead.
This makes the parameters more descriptive.

Signed-off-by: Tzung-Bi Shih <tzungbi@xxxxxxxxxx>
---
v2:
- New to the series.

v1: Doesn't exist.

drivers/base/power/main.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
index ed48c292f575..cd864f3a2799 100644
--- a/drivers/base/power/main.c
+++ b/drivers/base/power/main.c
@@ -40,6 +40,9 @@
#include "../base.h"
#include "power.h"

+#undef MODULE_PARAM_PREFIX
+#define MODULE_PARAM_PREFIX "power."
+
typedef int (*pm_callback_t)(struct device *);

/*
--
2.54.0.1032.g2f8565e1d1-goog