[PATCH 10/14] reset: sunxi: Staticize and constify driver ops
Marek Vasut
marek.vasut+renesas at mailbox.org
Sat May 9 17:12:33 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: Tom Rini <trini at konsulko.com>
Cc: u-boot at lists.denx.de
---
drivers/reset/reset-sunxi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/reset/reset-sunxi.c b/drivers/reset/reset-sunxi.c
index fd47e1f9e37..6195edd5b2f 100644
--- a/drivers/reset/reset-sunxi.c
+++ b/drivers/reset/reset-sunxi.c
@@ -67,7 +67,7 @@ static int sunxi_reset_deassert(struct reset_ctl *reset_ctl)
return sunxi_set_reset(reset_ctl, true);
}
-struct reset_ops sunxi_reset_ops = {
+static const struct reset_ops sunxi_reset_ops = {
.request = sunxi_reset_request,
.rst_assert = sunxi_reset_assert,
.rst_deassert = sunxi_reset_deassert,
--
2.53.0
More information about the U-Boot
mailing list