summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2026-05-09 17:12:35 +0200
committerTom Rini <[email protected]>2026-05-18 16:56:07 -0600
commit9c631c5dbb0758753fda452f3c5c8516f986e59a (patch)
tree3b4a7c5f4e9ecb9d69e763d1c1274bc42e50e15b /drivers
parent1e38a363c2ae5db7f4a64fb10051ff2321891e3e (diff)
reset: sti: 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]> Reviewed-by: Patrice Chotard <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/reset/sti-reset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/reset/sti-reset.c b/drivers/reset/sti-reset.c
index 412a0c5b452..37a37a72fd3 100644
--- a/drivers/reset/sti-reset.c
+++ b/drivers/reset/sti-reset.c
@@ -290,7 +290,7 @@ static int sti_reset_deassert(struct reset_ctl *reset_ctl)
return sti_reset_program_hw(reset_ctl, false);
}
-struct reset_ops sti_reset_ops = {
+static const struct reset_ops sti_reset_ops = {
.rst_assert = sti_reset_assert,
.rst_deassert = sti_reset_deassert,
};