From 034b44b4a22371c5bcbfb602a5420f3b75939dd8 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Wed, 2 Jul 2014 08:42:18 +0800 Subject: hwmon: Make regmap configs const Signed-off-by: Axel Lin Signed-off-by: Guenter Roeck --- 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(-) diff --git a/drivers/hwmon/emc1403.c b/drivers/hwmon/emc1403.c index a37b2204a418..1ea7ca510f84 100644 --- a/drivers/hwmon/emc1403.c +++ b/drivers/hwmon/emc1403.c @@ -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, diff --git a/drivers/hwmon/ltc2945.c b/drivers/hwmon/ltc2945.c index 3701b329b6ae..1b92e4f6e234 100644 --- a/drivers/hwmon/ltc2945.c +++ b/drivers/hwmon/ltc2945.c @@ -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, diff --git a/drivers/hwmon/ltc4222.c b/drivers/hwmon/ltc4222.c index 07c25653659f..88f747292816 100644 --- a/drivers/hwmon/ltc4222.c +++ b/drivers/hwmon/ltc4222.c @@ -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, diff --git a/drivers/hwmon/ltc4260.c b/drivers/hwmon/ltc4260.c index 453a250d9df5..afb09574b12c 100644 --- a/drivers/hwmon/ltc4260.c +++ b/drivers/hwmon/ltc4260.c @@ -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, diff --git a/drivers/hwmon/tmp103.c b/drivers/hwmon/tmp103.c index c9f99e0eb368..c74d2da389d9 100644 --- a/drivers/hwmon/tmp103.c +++ b/drivers/hwmon/tmp103.c @@ -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, -- cgit v1.2.3