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 <marek.vasut+renesas@mailbox.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20260508122128.512798-1-marek.vasut+renesas@mailbox.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
This commit is contained in:
Marek Vasut
2026-05-08 14:21:21 +02:00
committed by Neil Armstrong
parent 63f0f19803
commit 4e91d9ff33

View File

@@ -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[] = {