All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: max77620: Constify resources tables
@ 2016-06-05  8:28 Axel Lin
  2016-06-08 15:39 ` Lee Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2016-06-05  8:28 UTC (permalink / raw)
  To: Lee Jones; +Cc: Laxman Dewangan, Mallikarjun Kasoju, linux-kernel

These tables are never modified, so declare them as const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/mfd/max77620.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/mfd/max77620.c b/drivers/mfd/max77620.c
index 199d261..e831422 100644
--- a/drivers/mfd/max77620.c
+++ b/drivers/mfd/max77620.c
@@ -37,19 +37,19 @@
 #include <linux/regmap.h>
 #include <linux/slab.h>
 
-static struct resource gpio_resources[] = {
+static const struct resource gpio_resources[] = {
 	DEFINE_RES_IRQ(MAX77620_IRQ_TOP_GPIO),
 };
 
-static struct resource power_resources[] = {
+static const struct resource power_resources[] = {
 	DEFINE_RES_IRQ(MAX77620_IRQ_LBT_MBATLOW),
 };
 
-static struct resource rtc_resources[] = {
+static const struct resource rtc_resources[] = {
 	DEFINE_RES_IRQ(MAX77620_IRQ_TOP_RTC),
 };
 
-static struct resource thermal_resources[] = {
+static const struct resource thermal_resources[] = {
 	DEFINE_RES_IRQ(MAX77620_IRQ_LBT_TJALRM1),
 	DEFINE_RES_IRQ(MAX77620_IRQ_LBT_TJALRM2),
 };
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-08 15:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-05  8:28 [PATCH] mfd: max77620: Constify resources tables Axel Lin
2016-06-08 15:39 ` Lee Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.