Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: Make regmap configs const

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Axel Lin and committed by
Guenter Roeck
034b44b4 fa0efc40

+5 -5
+1 -1
drivers/hwmon/emc1403.c
··· 416 416 } 417 417 } 418 418 419 - static struct regmap_config emc1403_regmap_config = { 419 + static const struct regmap_config emc1403_regmap_config = { 420 420 .reg_bits = 8, 421 421 .val_bits = 8, 422 422 .cache_type = REGCACHE_RBTREE,
+1 -1
drivers/hwmon/ltc2945.c
··· 469 469 }; 470 470 ATTRIBUTE_GROUPS(ltc2945); 471 471 472 - static struct regmap_config ltc2945_regmap_config = { 472 + static const struct regmap_config ltc2945_regmap_config = { 473 473 .reg_bits = 8, 474 474 .val_bits = 8, 475 475 .max_register = LTC2945_MIN_ADIN_THRES_L,
+1 -1
drivers/hwmon/ltc4222.c
··· 186 186 }; 187 187 ATTRIBUTE_GROUPS(ltc4222); 188 188 189 - static struct regmap_config ltc4222_regmap_config = { 189 + static const struct regmap_config ltc4222_regmap_config = { 190 190 .reg_bits = 8, 191 191 .val_bits = 8, 192 192 .max_register = LTC4222_ADC_CONTROL,
+1 -1
drivers/hwmon/ltc4260.c
··· 150 150 }; 151 151 ATTRIBUTE_GROUPS(ltc4260); 152 152 153 - static struct regmap_config ltc4260_regmap_config = { 153 + static const struct regmap_config ltc4260_regmap_config = { 154 154 .reg_bits = 8, 155 155 .val_bits = 8, 156 156 .max_register = LTC4260_ADIN,
+1 -1
drivers/hwmon/tmp103.c
··· 116 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 120 .reg_bits = 8, 121 121 .val_bits = 8, 122 122 .max_register = TMP103_THIGH_REG,