mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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 <marek.vasut+renesas@mailbox.org> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user