浏览代码

mfd: max77620: Constify resources tables

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

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Axel Lin 9 年之前
父节点
当前提交
2be59755e6
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      drivers/mfd/max77620.c

+ 4 - 4
drivers/mfd/max77620.c

@@ -37,19 +37,19 @@
 #include <linux/regmap.h>
 #include <linux/regmap.h>
 #include <linux/slab.h>
 #include <linux/slab.h>
 
 
-static struct resource gpio_resources[] = {
+static const struct resource gpio_resources[] = {
 	DEFINE_RES_IRQ(MAX77620_IRQ_TOP_GPIO),
 	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),
 	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),
 	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_TJALRM1),
 	DEFINE_RES_IRQ(MAX77620_IRQ_LBT_TJALRM2),
 	DEFINE_RES_IRQ(MAX77620_IRQ_LBT_TJALRM2),
 };
 };