aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnrico Weigelt <info@metux.net>2019-06-17 18:00:10 +0200
committerLinus Walleij <linus.walleij@linaro.org>2019-06-25 11:09:34 +0200
commit9bb2e04525087b7d9f786aa5e68a167187576dbe (patch)
tree4f879a3e1e40f9141c5ab1078994eb67f7c14617
parent4892d3a6a009f7eba2e806b9183e5d8790769f41 (diff)
downloadnet-9bb2e0452508.tar.gz
gpio: amd: Make resource struct const
Notice: this object is not reachable from any branch.
The struct resource field is statically initialized and may never change. Therefore make it const. Signed-off-by: Enrico Weigelt <info@metux.net> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Notice: this object is not reachable from any branch.
-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 38c3f4a3d4aa8f..390a8b850b95de 100644
--- a/drivers/gpio/gpio-amd-fch.c
+++ b/drivers/gpio/gpio-amd-fch.c
@@ -25,7 +25,7 @@
#define AMD_FCH_GPIO_FLAG_WRITE BIT(22)
#define AMD_FCH_GPIO_FLAG_READ BIT(16)
-static struct resource amd_fch_gpio_iores =
+static const struct resource amd_fch_gpio_iores =
DEFINE_RES_MEM_NAMED(
AMD_FCH_MMIO_BASE + AMD_FCH_GPIO_BANK0_BASE,
AMD_FCH_GPIO_SIZE,