summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorEnrico Weigelt <info@metux.net>2019-06-17 12:00:10 -0400
committerLinus Walleij <linus.walleij@linaro.org>2019-07-03 04:10:32 -0400
commit87b70378f424df65465d5bfba2b8f233ee8b36e7 (patch)
treeeb4f4c8af67d0c16e3a126f6008135387d92f73c /drivers/gpio
parent9dea44c91469512d346e638694c22c30a5273992 (diff)
drivers: gpio: amd-fch: make resource struct const
The struct resource field is statically initialized and may never change. Therefore make it const. Signed-off-by: Enrico Weigelt <info@metux.net> Link: https://lore.kernel.org/r/1560787211-15443-1-git-send-email-info@metux.net Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-amd-fch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-amd-fch.c b/drivers/gpio/gpio-amd-fch.c
index f80b690f374c..181df1581df5 100644
--- a/drivers/gpio/gpio-amd-fch.c
+++ b/drivers/gpio/gpio-amd-fch.c
@@ -25,7 +25,7 @@
25#define AMD_FCH_GPIO_FLAG_WRITE BIT(22) 25#define AMD_FCH_GPIO_FLAG_WRITE BIT(22)
26#define AMD_FCH_GPIO_FLAG_READ BIT(16) 26#define AMD_FCH_GPIO_FLAG_READ BIT(16)
27 27
28static struct resource amd_fch_gpio_iores = 28static const struct resource amd_fch_gpio_iores =
29 DEFINE_RES_MEM_NAMED( 29 DEFINE_RES_MEM_NAMED(
30 AMD_FCH_MMIO_BASE + AMD_FCH_GPIO_BANK0_BASE, 30 AMD_FCH_MMIO_BASE + AMD_FCH_GPIO_BANK0_BASE,
31 AMD_FCH_GPIO_SIZE, 31 AMD_FCH_GPIO_SIZE,