[PATCH 2/4] clk: ast2600: Staticize and constify driver ops

Marek Vasut marek.vasut+renesas at mailbox.org
Thu May 7 18:42:58 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: Aspeed BMC SW team <BMC-SW at aspeedtech.com>
Cc: Chia-Wei Wang <chiawei_wang at aspeedtech.com>
Cc: Joel Stanley <joel at jms.id.au>
Cc: Lukasz Majewski <lukma at denx.de>
Cc: Ryan Chen <ryan_chen at aspeedtech.com>
Cc: Tom Rini <trini at konsulko.com>
Cc: u-boot at lists.denx.de
---
 drivers/clk/aspeed/clk_ast2600.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/aspeed/clk_ast2600.c b/drivers/clk/aspeed/clk_ast2600.c
index 535010b7941..4530053bc6b 100644
--- a/drivers/clk/aspeed/clk_ast2600.c
+++ b/drivers/clk/aspeed/clk_ast2600.c
@@ -1161,7 +1161,7 @@ static void ast2600_clk_dump(struct udevice *dev)
 }
 #endif
 
-struct clk_ops ast2600_clk_ops = {
+static const struct clk_ops ast2600_clk_ops = {
 	.get_rate = ast2600_clk_get_rate,
 	.set_rate = ast2600_clk_set_rate,
 	.enable = ast2600_clk_enable,
-- 
2.53.0



More information about the U-Boot mailing list