]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
usb: dwc3: sti: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 10 May 2026 17:16:32 +0000 (19:16 +0200)
committerMarek Vasut <marek.vasut+usb@mailbox.org>
Wed, 3 Jun 2026 00:00:59 +0000 (02:00 +0200)
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: Mattijs Korpershoek <mkorpershoek@kernel.org>
drivers/usb/dwc3/dwc3-generic-sti.c

index b34f5ceceacc2a640ffd82f47145d4da3285949b..ce195b2553bdb71dc7c4581be2f81c12c21d9f83 100644 (file)
@@ -114,7 +114,7 @@ static void dwc3_stih407_glue_configure(struct udevice *dev, int index,
        setbits_le32(glue_base + CLKRST_CTRL, SW_PIPEW_RESET_N);
 };
 
-struct dwc3_glue_ops stih407_ops = {
+static const struct dwc3_glue_ops stih407_ops = {
        .glue_configure = dwc3_stih407_glue_configure,
 };