diff options
| author | Marek Vasut <[email protected]> | 2026-05-10 19:16:32 +0200 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2026-06-03 02:00:59 +0200 |
| commit | f0dccb21eb6ea81883089ca2c063932762267a88 (patch) | |
| tree | bcbc6caf15faa97d2754e2556fdcc04351f2d996 /drivers/usb | |
| parent | d86b3a753fee2068ab59c7c9be3e973b26de535d (diff) | |
usb: dwc3: 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: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'drivers/usb')
| -rw-r--r-- | drivers/usb/dwc3/dwc3-generic-sti.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/dwc3-generic-sti.c b/drivers/usb/dwc3/dwc3-generic-sti.c index b34f5ceceac..ce195b2553b 100644 --- a/drivers/usb/dwc3/dwc3-generic-sti.c +++ b/drivers/usb/dwc3/dwc3-generic-sti.c @@ -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, }; |
