Commit 034b44b4 authored by Axel Lin's avatar Axel Lin Committed by Guenter Roeck

hwmon: Make regmap configs const

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent fa0efc40
...@@ -416,7 +416,7 @@ static bool emc1403_regmap_is_volatile(struct device *dev, unsigned int reg) ...@@ -416,7 +416,7 @@ static bool emc1403_regmap_is_volatile(struct device *dev, unsigned int reg)
} }
} }
static struct regmap_config emc1403_regmap_config = { static const struct regmap_config emc1403_regmap_config = {
.reg_bits = 8, .reg_bits = 8,
.val_bits = 8, .val_bits = 8,
.cache_type = REGCACHE_RBTREE, .cache_type = REGCACHE_RBTREE,
......
...@@ -469,7 +469,7 @@ static struct attribute *ltc2945_attrs[] = { ...@@ -469,7 +469,7 @@ static struct attribute *ltc2945_attrs[] = {
}; };
ATTRIBUTE_GROUPS(ltc2945); ATTRIBUTE_GROUPS(ltc2945);
static struct regmap_config ltc2945_regmap_config = { static const struct regmap_config ltc2945_regmap_config = {
.reg_bits = 8, .reg_bits = 8,
.val_bits = 8, .val_bits = 8,
.max_register = LTC2945_MIN_ADIN_THRES_L, .max_register = LTC2945_MIN_ADIN_THRES_L,
......
...@@ -186,7 +186,7 @@ static struct attribute *ltc4222_attrs[] = { ...@@ -186,7 +186,7 @@ static struct attribute *ltc4222_attrs[] = {
}; };
ATTRIBUTE_GROUPS(ltc4222); ATTRIBUTE_GROUPS(ltc4222);
static struct regmap_config ltc4222_regmap_config = { static const struct regmap_config ltc4222_regmap_config = {
.reg_bits = 8, .reg_bits = 8,
.val_bits = 8, .val_bits = 8,
.max_register = LTC4222_ADC_CONTROL, .max_register = LTC4222_ADC_CONTROL,
......
...@@ -150,7 +150,7 @@ static struct attribute *ltc4260_attrs[] = { ...@@ -150,7 +150,7 @@ static struct attribute *ltc4260_attrs[] = {
}; };
ATTRIBUTE_GROUPS(ltc4260); ATTRIBUTE_GROUPS(ltc4260);
static struct regmap_config ltc4260_regmap_config = { static const struct regmap_config ltc4260_regmap_config = {
.reg_bits = 8, .reg_bits = 8,
.val_bits = 8, .val_bits = 8,
.max_register = LTC4260_ADIN, .max_register = LTC4260_ADIN,
......
...@@ -116,7 +116,7 @@ static bool tmp103_regmap_is_volatile(struct device *dev, unsigned int reg) ...@@ -116,7 +116,7 @@ static bool tmp103_regmap_is_volatile(struct device *dev, unsigned int reg)
return reg == TMP103_TEMP_REG; return reg == TMP103_TEMP_REG;
} }
static struct regmap_config tmp103_regmap_config = { static const struct regmap_config tmp103_regmap_config = {
.reg_bits = 8, .reg_bits = 8,
.val_bits = 8, .val_bits = 8,
.max_register = TMP103_THIGH_REG, .max_register = TMP103_THIGH_REG,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment