Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2be59755 authored by Axel Lin's avatar Axel Lin Committed by Lee Jones
Browse files

mfd: max77620: Constify resources tables



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

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 521d9357
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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),
};