]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
scsi: sandbox: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 10 May 2026 17:15:52 +0000 (19:15 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 18 May 2026 22:56:07 +0000 (16:56 -0600)
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>
drivers/scsi/sandbox_scsi.c

index 544a0247083d9da954a0679ae97ac65f536dfe9e..5f0b01d86d51a2f0fd9120bb84fe5bbd28d5bd55 100644 (file)
@@ -128,7 +128,7 @@ static int sandbox_scsi_remove(struct udevice *dev)
        return 0;
 }
 
-struct scsi_ops sandbox_scsi_ops = {
+static const struct scsi_ops sandbox_scsi_ops = {
        .exec           = sandbox_scsi_exec,
        .bus_reset      = sandbox_scsi_bus_reset,
 };