summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2026-05-10 19:15:52 +0200
committerTom Rini <[email protected]>2026-05-18 16:56:07 -0600
commit50e6cda6b6b50b43940687b32c40b7cdd8d707dc (patch)
treefbafeebcac98d6417a9cfd4370cd162059e93b5e
parenta504ad9e685a5711d894b8759dcfb1b6e3127d82 (diff)
scsi: sandbox: 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/scsi/sandbox_scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sandbox_scsi.c b/drivers/scsi/sandbox_scsi.c
index 544a0247083..5f0b01d86d5 100644
--- a/drivers/scsi/sandbox_scsi.c
+++ b/drivers/scsi/sandbox_scsi.c
@@ -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,
};