usb: dwc3: am62: 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 <marek.vasut+renesas@mailbox.org> Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user