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

hwmon: (tmp513) Constify struct regmap_config

`tmp51x_regmap_config` is not modified and can be declared as const to
move its data to a read-only section.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20240702-hwmon-const-regmap-v1-2-63f6d4765fe0@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Javier Carrasco and committed by
Guenter Roeck
4bc82dd2 9d047eb0

+1 -1
+1 -1
drivers/hwmon/tmp513.c
··· 159 159 TMP51X_BUS_CURRENT_RESULT 160 160 }; 161 161 162 - static struct regmap_config tmp51x_regmap_config = { 162 + static const struct regmap_config tmp51x_regmap_config = { 163 163 .reg_bits = 8, 164 164 .val_bits = 16, 165 165 .max_register = TMP51X_MAX_REGISTER_ADDR,