From 7a663fbf99a39416a0bb9997d92a65c29690a119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Mon, 16 Jun 2025 17:03:55 +0200 Subject: [PATCH] drivers: pcie: shell: add missing const qualifiers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ensure string conversion tables end up in flash. Signed-off-by: Benjamin Cabé --- drivers/pcie/host/shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pcie/host/shell.c b/drivers/pcie/host/shell.c index a0d36db6269..85f87122c21 100644 --- a/drivers/pcie/host/shell.c +++ b/drivers/pcie/host/shell.c @@ -22,7 +22,7 @@ struct pcie_cap_id_to_str { char *str; }; -static struct pcie_cap_id_to_str pcie_cap_list[] = { +static const struct pcie_cap_id_to_str pcie_cap_list[] = { { PCI_CAP_ID_PM, "Power Management" }, { PCI_CAP_ID_AGP, "Accelerated Graphics Port" }, { PCI_CAP_ID_VPD, "Vital Product Data" }, @@ -47,7 +47,7 @@ static struct pcie_cap_id_to_str pcie_cap_list[] = { { PCI_CAP_ID_NULL, NULL }, }; -static struct pcie_cap_id_to_str pcie_ext_cap_list[] = { +static const struct pcie_cap_id_to_str pcie_ext_cap_list[] = { { PCIE_EXT_CAP_ID_ERR, "Advanced Error Reporting" }, { PCIE_EXT_CAP_ID_VC, "Virtual Channel when no MFVC" }, { PCIE_EXT_CAP_ID_DSN, "Device Serial Number" },