[PATCH 10/14] power: domain: mtk: Staticize and constify driver ops
Marek Vasut
marek.vasut+renesas at mailbox.org
Fri May 8 14:22:10 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: Chunfeng Yun <chunfeng.yun at mediatek.com>
Cc: David Lechner <dlechner at baylibre.com>
Cc: GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream at mediatek.com>
Cc: Igor Belwon <igor.belwon at mentallysanemainliners.org>
Cc: Jaehoon Chung <jh80.chung at samsung.com>
Cc: Julien Stephan <jstephan at baylibre.com>
Cc: Peng Fan <peng.fan at nxp.com>
Cc: Ryder Lee <ryder.lee at mediatek.com>
Cc: Tom Rini <trini at konsulko.com>
Cc: Weijie Gao <weijie.gao at mediatek.com>
Cc: u-boot at lists.denx.de
---
drivers/power/domain/mtk-power-domain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/power/domain/mtk-power-domain.c b/drivers/power/domain/mtk-power-domain.c
index 2d1ba1855a5..24dd540897d 100644
--- a/drivers/power/domain/mtk-power-domain.c
+++ b/drivers/power/domain/mtk-power-domain.c
@@ -392,7 +392,7 @@ static const struct udevice_id mtk_power_domain_ids[] = {
{ /* sentinel */ }
};
-struct power_domain_ops mtk_power_domain_ops = {
+static const struct power_domain_ops mtk_power_domain_ops = {
.off = scpsys_power_off,
.on = scpsys_power_on,
.request = scpsys_power_request,
--
2.53.0
More information about the U-Boot
mailing list