Skip to content

Commit 7a663fb

Browse files
committed
drivers: pcie: shell: add missing const qualifiers
Ensure string conversion tables end up in flash. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent 9b1e05b commit 7a663fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pcie/host/shell.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct pcie_cap_id_to_str {
2222
char *str;
2323
};
2424

25-
static struct pcie_cap_id_to_str pcie_cap_list[] = {
25+
static const struct pcie_cap_id_to_str pcie_cap_list[] = {
2626
{ PCI_CAP_ID_PM, "Power Management" },
2727
{ PCI_CAP_ID_AGP, "Accelerated Graphics Port" },
2828
{ PCI_CAP_ID_VPD, "Vital Product Data" },
@@ -47,7 +47,7 @@ static struct pcie_cap_id_to_str pcie_cap_list[] = {
4747
{ PCI_CAP_ID_NULL, NULL },
4848
};
4949

50-
static struct pcie_cap_id_to_str pcie_ext_cap_list[] = {
50+
static const struct pcie_cap_id_to_str pcie_ext_cap_list[] = {
5151
{ PCIE_EXT_CAP_ID_ERR, "Advanced Error Reporting" },
5252
{ PCIE_EXT_CAP_ID_VC, "Virtual Channel when no MFVC" },
5353
{ PCIE_EXT_CAP_ID_DSN, "Device Serial Number" },

0 commit comments

Comments
 (0)