mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
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:
committed by
Neil Armstrong
parent
63f0f19803
commit
4e91d9ff33
@@ -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[] = {
|
||||
|
||||
Reference in New Issue
Block a user