Skip to content

Commit 9bb2e04

Browse files
metuxLinus Walleij
authored andcommitted
gpio: amd: Make resource struct const
The struct resource field is statically initialized and may never change. Therefore make it const. Signed-off-by: Enrico Weigelt <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 4892d3a commit 9bb2e04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpio/gpio-amd-fch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#define AMD_FCH_GPIO_FLAG_WRITE BIT(22)
2626
#define AMD_FCH_GPIO_FLAG_READ BIT(16)
2727

28-
static struct resource amd_fch_gpio_iores =
28+
static const struct resource amd_fch_gpio_iores =
2929
DEFINE_RES_MEM_NAMED(
3030
AMD_FCH_MMIO_BASE + AMD_FCH_GPIO_BANK0_BASE,
3131
AMD_FCH_GPIO_SIZE,

0 commit comments

Comments
 (0)