]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
usb: dwc3: am62: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 10 May 2026 17:16:31 +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-am62.c

index 99519602eb2c66299445163fafcdb3e065c89eda..8cb5796b6ad013da3418bf711c35c1e52d37cc41 100644 (file)
@@ -105,7 +105,7 @@ static void dwc3_ti_am62_glue_configure(struct udevice *dev, int index,
        writel(reg, usbss + USBSS_MODE_CONTROL);
 }
 
-struct dwc3_glue_ops ti_am62_ops = {
+static const struct dwc3_glue_ops ti_am62_ops = {
        .glue_configure = dwc3_ti_am62_glue_configure,
 };