mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
spi: bcm2835: make read-only const array pinctrl_compats static
Don't populate the read-only const array pinctrl_compats on the stack at run time, instead make it static const char * const Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://patch.msgid.link/20260714164215.183809-1-colin.i.king@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
3e106385e3
commit
9c4a2dced7
|
|
@ -1226,7 +1226,7 @@ static int bcm2835_spi_setup(struct spi_device *spi)
|
|||
struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
|
||||
struct bcm2835_spidev *target = spi_get_ctldata(spi);
|
||||
struct gpiod_lookup_table *lookup __free(kfree) = NULL;
|
||||
const char *pinctrl_compats[] = {
|
||||
static const char * const pinctrl_compats[] = {
|
||||
"brcm,bcm2835-gpio",
|
||||
"brcm,bcm2711-gpio",
|
||||
"brcm,bcm7211-gpio",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user