Skip to contentSkip to conversation

hwmon: Make regmap configs const

PATCH Applied Axel Lin 2 participants 2 messages Jul 2, 2014 Hardware monitoring

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 hwmon: Make regmap configs const

---
 drivers/hwmon/emc1403.c | 2 +-
 drivers/hwmon/ltc2945.c | 2 +-
 drivers/hwmon/ltc4222.c | 2 +-
 drivers/hwmon/ltc4260.c | 2 +-
 drivers/hwmon/tmp103.c  | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
drivers/hwmon/emc1403.c +1 -1
index a37b220..1ea7ca5 100644
@@ -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,
 	.val_bits = 8,
 	.cache_type = REGCACHE_RBTREE,
drivers/hwmon/ltc2945.c +1 -1
index 3701b32..1b92e4f 100644
@@ -469,7 +469,7 @@ static struct attribute *ltc2945_attrs[] = {
 };
 ATTRIBUTE_GROUPS(ltc2945);
 
-static struct regmap_config ltc2945_regmap_config = {
+static const struct regmap_config ltc2945_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
 	.max_register = LTC2945_MIN_ADIN_THRES_L,
drivers/hwmon/ltc4222.c +1 -1
index 07c2565..88f7472 100644
@@ -186,7 +186,7 @@ static struct attribute *ltc4222_attrs[] = {
 };
 ATTRIBUTE_GROUPS(ltc4222);
 
-static struct regmap_config ltc4222_regmap_config = {
+static const struct regmap_config ltc4222_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
 	.max_register = LTC4222_ADC_CONTROL,
drivers/hwmon/ltc4260.c +1 -1
index 453a250..afb09574 100644
@@ -150,7 +150,7 @@ static struct attribute *ltc4260_attrs[] = {
 };
 ATTRIBUTE_GROUPS(ltc4260);
 
-static struct regmap_config ltc4260_regmap_config = {
+static const struct regmap_config ltc4260_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
 	.max_register = LTC4260_ADIN,
drivers/hwmon/tmp103.c +1 -1
index e69dbca..f4770b4 100644
@@ -116,7 +116,7 @@ static bool tmp103_regmap_is_volatile(struct device *dev, unsigned int reg)
 	return reg = TMP103_TEMP_REG;
 }
 
-static struct regmap_config tmp103_regmap_config = {
+static const struct regmap_config tmp103_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
 	.max_register = TMP103_THIGH_REG,
Signature · 9 lines
1.9.1




_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors