summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2026-05-09 17:12:26 +0200
committerTom Rini <[email protected]>2026-05-18 16:56:07 -0600
commit432749b1a3f7be53cc8b3c6156b0c6cf6612634b (patch)
treec70d7290af731f8c1d051aabc84daa89da7540ec
parentcecdc51a4665705e9689b6780d9e0ff9dbd13421 (diff)
reset: at91: 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/reset/reset-at91.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/reset/reset-at91.c b/drivers/reset/reset-at91.c
index 165c87acdc4..ebbfae1469b 100644
--- a/drivers/reset/reset-at91.c
+++ b/drivers/reset/reset-at91.c
@@ -79,7 +79,7 @@ static int at91_rst_deassert(struct reset_ctl *reset_ctl)
return at91_rst_update(reset, reset_ctl->id, false);
}
-struct reset_ops at91_reset_ops = {
+static const struct reset_ops at91_reset_ops = {
.of_xlate = at91_reset_of_xlate,
.rst_assert = at91_rst_assert,
.rst_deassert = at91_rst_deassert,