projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dea44c
)
drivers: gpio: amd-fch: make resource struct const
author
Enrico Weigelt
<info@metux.net>
Mon, 17 Jun 2019 16:00:10 +0000
(18:00 +0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Wed, 3 Jul 2019 08:10:32 +0000
(10:10 +0200)
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>
drivers/gpio/gpio-amd-fch.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-amd-fch.c
b/drivers/gpio/gpio-amd-fch.c
index f80b690f374cf9ff2ae025572d740823f9d9756a..181df1581df5e0e12034ac9da820e2a2e2232af9 100644
(file)
--- 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,