summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2026-05-07 18:42:06 +0200
committerTom Rini <[email protected]>2026-05-18 14:26:36 -0600
commit06bf459570bad2dcdbd944c70e08084a815c00df (patch)
tree25f2dcb33d18addc5a5310fb3530e661ce6c4eee
parent11e1be868cbf119203445a2a4b1bf6a56dece031 (diff)
ata: fsl_sata: 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: Simon Glass <[email protected]>
-rw-r--r--drivers/ata/fsl_sata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/fsl_sata.c b/drivers/ata/fsl_sata.c
index 4990148388b..a29735f7609 100644
--- a/drivers/ata/fsl_sata.c
+++ b/drivers/ata/fsl_sata.c
@@ -960,7 +960,7 @@ static int sata_fsl_scan(struct udevice *dev)
return 0;
}
-struct ahci_ops sata_fsl_ahci_ops = {
+static const struct ahci_ops sata_fsl_ahci_ops = {
.scan = sata_fsl_scan,
};