summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2026-05-07 18:42:57 +0200
committerTom Rini <[email protected]>2026-05-18 16:56:07 -0600
commita8f49cc1938476486a800e23f410737a0701b5ad (patch)
tree12303a5979e2dbedb58b5a81a5dd0c71c8077efd
parent64abe3cfcc1e86f3f1957622ad6b6732daf59c01 (diff)
clk: ast2500: Staticize and constify driver ops
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 <[email protected]>
-rw-r--r--drivers/clk/aspeed/clk_ast2500.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/aspeed/clk_ast2500.c b/drivers/clk/aspeed/clk_ast2500.c
index a330dcda4dc..b07d7cd419c 100644
--- a/drivers/clk/aspeed/clk_ast2500.c
+++ b/drivers/clk/aspeed/clk_ast2500.c
@@ -534,7 +534,7 @@ static int ast2500_clk_enable(struct clk *clk)
return 0;
}
-struct clk_ops ast2500_clk_ops = {
+static const struct clk_ops ast2500_clk_ops = {
.get_rate = ast2500_clk_get_rate,
.set_rate = ast2500_clk_set_rate,
.enable = ast2500_clk_enable,