[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1560787211-15443-1-git-send-email-info@metux.net>
Date: Mon, 17 Jun 2019 18:00:10 +0200
From: "Enrico Weigelt, metux IT consult" <info@...ux.net>
To: linux-kernel@...r.kernel.org
Cc: info@...ux.net, linus.walleij@...aro.org,
bgolaszewski@...libre.com, linux-gpio@...r.kernel.org
Subject: [PATCH 1/2] drivers: gpio: amd-fch: make resource struct const
From: Enrico Weigelt <info@...ux.net>
The struct resource field is statically initialized
and may never change. Therefore make it const.
Signed-off-by: Enrico Weigelt <info@...ux.net>
---
drivers/gpio/gpio-amd-fch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-amd-fch.c b/drivers/gpio/gpio-amd-fch.c
index 38c3f4a..390a8b8 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,
--
1.9.1
Powered by blists - more mailing lists