]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
reset: sti: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 9 May 2026 15:12:35 +0000 (17:12 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 18 May 2026 22:56:07 +0000 (16:56 -0600)
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 <marek.vasut+renesas@mailbox.org>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/reset/sti-reset.c

index 412a0c5b452bc4ad4a6a8b50a7f886da3cc3d728..37a37a72fd32313c7dc708c5e4043c2958a663e7 100644 (file)
@@ -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,
 };