summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2026-05-09 17:12:24 +0200
committerTom Rini <[email protected]>2026-05-18 16:56:07 -0600
commitc2912fa76b663cc7621080f5dbdf134758c27de0 (patch)
treef475d0079873a68ff5dd4edd2a0ed552b19cc829 /drivers
parent1f1ec618f2a9129714fdb30d8120d7b3808947a2 (diff)
reset: 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]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/reset/reset-ast2500.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/reset/reset-ast2500.c b/drivers/reset/reset-ast2500.c
index f3543fa8cc1..39b3d025713 100644
--- a/drivers/reset/reset-ast2500.c
+++ b/drivers/reset/reset-ast2500.c
@@ -91,7 +91,7 @@ static const struct udevice_id ast2500_reset_ids[] = {
{ }
};
-struct reset_ops ast2500_reset_ops = {
+static const struct reset_ops ast2500_reset_ops = {
.rst_assert = ast2500_reset_assert,
.rst_deassert = ast2500_reset_deassert,
.rst_status = ast2500_reset_status,