Skip to content

Commit 2d72d81

Browse files
ColinIanKingkwilczynski
authored andcommitted
PCI: brcmstb: Make const read-only arrays static
Don't populate the const read-only arrays "data" and "regs" on the stack at run time, instead make them static. Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> [kwilczynski: commit log, wrap overly long line to 80 columns] Signed-off-by: Krzysztof Wilczyński <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 174cfcf commit 2d72d81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/pci/controller/pcie-brcmstb.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,8 +832,9 @@ static int brcm_pcie_perst_set_generic(struct brcm_pcie *pcie, u32 val)
832832

833833
static int brcm_pcie_post_setup_bcm2712(struct brcm_pcie *pcie)
834834
{
835-
const u16 data[] = { 0x50b9, 0xbda1, 0x0094, 0x97b4, 0x5030, 0x5030, 0x0007 };
836-
const u8 regs[] = { 0x16, 0x17, 0x18, 0x19, 0x1b, 0x1c, 0x1e };
835+
static const u16 data[] = { 0x50b9, 0xbda1, 0x0094, 0x97b4, 0x5030,
836+
0x5030, 0x0007 };
837+
static const u8 regs[] = { 0x16, 0x17, 0x18, 0x19, 0x1b, 0x1c, 0x1e };
837838
int ret, i;
838839
u32 tmp;
839840

0 commit comments

Comments
 (0)