[PATCH 05/14] power: domain: imx8m: Staticize and constify driver ops
Marek Vasut
marek.vasut+renesas at mailbox.org
Fri May 8 14:22:05 CEST 2026
Set the ops structure as static const. The structure is not accessible
from outside of this driver and is not going to be modified at runtime.
Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
---
Cc: Frieder Schrempf <frieder.schrempf at kontron.de>
Cc: Jaehoon Chung <jh80.chung at samsung.com>
Cc: Miquel Raynal <miquel.raynal at bootlin.com>
Cc: Patrice Chotard <patrice.chotard at foss.st.com>
Cc: Peng Fan <peng.fan at nxp.com>
Cc: Tom Rini <trini at konsulko.com>
Cc: Yao Zi <me at ziyao.cc>
Cc: u-boot at lists.denx.de
---
drivers/power/domain/imx8m-power-domain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/power/domain/imx8m-power-domain.c b/drivers/power/domain/imx8m-power-domain.c
index 1c731b897cc..5fdb95fb6a7 100644
--- a/drivers/power/domain/imx8m-power-domain.c
+++ b/drivers/power/domain/imx8m-power-domain.c
@@ -558,7 +558,7 @@ static const struct udevice_id imx8m_power_domain_ids[] = {
{ }
};
-struct power_domain_ops imx8m_power_domain_ops = {
+static const struct power_domain_ops imx8m_power_domain_ops = {
.on = imx8m_power_domain_on,
.off = imx8m_power_domain_off,
.of_xlate = imx8m_power_domain_of_xlate,
--
2.53.0
More information about the U-Boot
mailing list