summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2026-05-09 17:12:32 +0200
committerTom Rini <[email protected]>2026-05-18 16:56:07 -0600
commit2a7e739c040bbeb34c39fb38d159609079109f51 (patch)
tree444a065d656915ed171009b54cc8bd0f86af2222
parent35cd9d8636c25a7e9bc908db2fe8adcd87e6afc0 (diff)
reset: raspberrypi: 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-raspberrypi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/reset/reset-raspberrypi.c b/drivers/reset/reset-raspberrypi.c
index 1792f0813f7..73acd301e3d 100644
--- a/drivers/reset/reset-raspberrypi.c
+++ b/drivers/reset/reset-raspberrypi.c
@@ -28,7 +28,7 @@ static int raspberrypi_reset_assert(struct reset_ctl *reset_ctl)
}
}
-struct reset_ops raspberrypi_reset_ops = {
+static const struct reset_ops raspberrypi_reset_ops = {
.request = raspberrypi_reset_request,
.rst_assert = raspberrypi_reset_assert,
};