]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm: mx6: cm-fx6: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 7 May 2026 16:41:35 +0000 (18:41 +0200)
committerFabio Estevam <festevam@gmail.com>
Fri, 15 May 2026 20:31:39 +0000 (17:31 -0300)
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>
board/compulab/cm_fx6/cm_fx6.c

index 40047cf678306bd49928e31a6483fbe2c1ef7f2e..e20350dc5d55aabaf77681e9e66f828068db94fc 100644 (file)
@@ -778,7 +778,7 @@ static int sata_imx_remove(struct udevice *dev)
        return 0;
 }
 
-struct ahci_ops sata_imx_ops = {
+static const struct ahci_ops sata_imx_ops = {
        .port_status = dwc_ahsata_port_status,
        .reset  = dwc_ahsata_bus_reset,
        .scan   = dwc_ahsata_scan,