diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-07-01 20:42:18 -0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-08-04 10:01:35 -0400 |
commit | 034b44b4a22371c5bcbfb602a5420f3b75939dd8 (patch) | |
tree | bdd4f9f3e3dee7ddb7cbd6bf8fd5a4cbdb6dc2d8 | |
parent | fa0efc4091e2299741a0391eeaadd36f335d942e (diff) |
hwmon: Make regmap configs const
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r-- | drivers/hwmon/emc1403.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/ltc2945.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/ltc4222.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/ltc4260.c | 2 | ||||
-rw-r--r-- | 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) | |||
416 | } | 416 | } |
417 | } | 417 | } |
418 | 418 | ||
419 | static struct regmap_config emc1403_regmap_config = { | 419 | static const struct regmap_config emc1403_regmap_config = { |
420 | .reg_bits = 8, | 420 | .reg_bits = 8, |
421 | .val_bits = 8, | 421 | .val_bits = 8, |
422 | .cache_type = REGCACHE_RBTREE, | 422 | .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[] = { | |||
469 | }; | 469 | }; |
470 | ATTRIBUTE_GROUPS(ltc2945); | 470 | ATTRIBUTE_GROUPS(ltc2945); |
471 | 471 | ||
472 | static struct regmap_config ltc2945_regmap_config = { | 472 | static const struct regmap_config ltc2945_regmap_config = { |
473 | .reg_bits = 8, | 473 | .reg_bits = 8, |
474 | .val_bits = 8, | 474 | .val_bits = 8, |
475 | .max_register = LTC2945_MIN_ADIN_THRES_L, | 475 | .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[] = { | |||
186 | }; | 186 | }; |
187 | ATTRIBUTE_GROUPS(ltc4222); | 187 | ATTRIBUTE_GROUPS(ltc4222); |
188 | 188 | ||
189 | static struct regmap_config ltc4222_regmap_config = { | 189 | static const struct regmap_config ltc4222_regmap_config = { |
190 | .reg_bits = 8, | 190 | .reg_bits = 8, |
191 | .val_bits = 8, | 191 | .val_bits = 8, |
192 | .max_register = LTC4222_ADC_CONTROL, | 192 | .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[] = { | |||
150 | }; | 150 | }; |
151 | ATTRIBUTE_GROUPS(ltc4260); | 151 | ATTRIBUTE_GROUPS(ltc4260); |
152 | 152 | ||
153 | static struct regmap_config ltc4260_regmap_config = { | 153 | static const struct regmap_config ltc4260_regmap_config = { |
154 | .reg_bits = 8, | 154 | .reg_bits = 8, |
155 | .val_bits = 8, | 155 | .val_bits = 8, |
156 | .max_register = LTC4260_ADIN, | 156 | .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) | |||
116 | return reg == TMP103_TEMP_REG; | 116 | return reg == TMP103_TEMP_REG; |
117 | } | 117 | } |
118 | 118 | ||
119 | static struct regmap_config tmp103_regmap_config = { | 119 | static const struct regmap_config tmp103_regmap_config = { |
120 | .reg_bits = 8, | 120 | .reg_bits = 8, |
121 | .val_bits = 8, | 121 | .val_bits = 8, |
122 | .max_register = TMP103_THIGH_REG, | 122 | .max_register = TMP103_THIGH_REG, |