[PATCH 06/14] reset: mediatek: Staticize and constify driver ops
Marek Vasut
marek.vasut+renesas at mailbox.org
Sat May 9 17:12:29 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: Julien Stephan <jstephan at baylibre.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/reset/reset-mediatek.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/reset/reset-mediatek.c b/drivers/reset/reset-mediatek.c
index 4b3afab92ea..66bcf7c29b6 100644
--- a/drivers/reset/reset-mediatek.c
+++ b/drivers/reset/reset-mediatek.c
@@ -47,7 +47,7 @@ static int mediatek_reset_deassert(struct reset_ctl *reset_ctl)
priv->regofs + ((id / 32) << 2), BIT(id % 32), 0);
}
-struct reset_ops mediatek_reset_ops = {
+static const struct reset_ops mediatek_reset_ops = {
.rst_assert = mediatek_reset_assert,
.rst_deassert = mediatek_reset_deassert,
};
--
2.53.0
More information about the U-Boot
mailing list