diff options
| author | Marek Vasut <[email protected]> | 2026-05-08 14:21:21 +0200 |
|---|---|---|
| committer | Neil Armstrong <[email protected]> | 2026-05-20 09:44:37 +0200 |
| commit | 4e91d9ff3324866d5cdfc0bc73e3382ce6fcc3d7 (patch) | |
| tree | f386395f082989e199e41dab7426330448ae0eba | |
| parent | 63f0f19803ee28a3612dfbef719ae7bac5143eef (diff) | |
nvme: 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: Neil Armstrong <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Neil Armstrong <[email protected]>
| -rw-r--r-- | drivers/nvme/nvme-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/nvme-uclass.c b/drivers/nvme/nvme-uclass.c index 44c88ad27f3..4ab9567450f 100644 --- a/drivers/nvme/nvme-uclass.c +++ b/drivers/nvme/nvme-uclass.c @@ -44,7 +44,7 @@ UCLASS_DRIVER(nvme) = { .id = UCLASS_NVME, }; -struct bootdev_ops nvme_bootdev_ops = { +static const struct bootdev_ops nvme_bootdev_ops = { }; static const struct udevice_id nvme_bootdev_ids[] = { |
