Skip to content

Commit 2957a70

Browse files
Benjamin CabéChromeos LUCI
authored andcommitted
drivers: pcie: shell: add missing const qualifiers
Ensure string conversion tables end up in flash. (cherry picked from commit 7a663fb) Original-Signed-off-by: Benjamin Cabé <[email protected]> GitOrigin-RevId: 7a663fb Cr-Build-Id: 8711840798614211969 Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8711840798614211969 Copybot-Job-Name: zephyr-main-copybot-downstream Change-Id: Id095cb83a5d29b5031271b10abd579f34c13708f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/6650445 Tested-by: ChromeOS Copybot <[email protected]> Commit-Queue: Yuval Peress <[email protected]> Tested-by: Yuval Peress <[email protected]> Reviewed-by: Yuval Peress <[email protected]>
1 parent b63ad39 commit 2957a70

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)