Skip to content

Commit f642714

Browse files
javiercarrascocruzgroeck
authored andcommitted
hwmon: (tps23861) Constify struct regmap_config
`tps23861_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-3-63f6d4765fe0@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 4bc82dd commit f642714

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/hwmon/tps23861.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ struct tps23861_data {
117117
struct dentry *debugfs_dir;
118118
};
119119

120-
static struct regmap_config tps23861_regmap_config = {
120+
static const struct regmap_config tps23861_regmap_config = {
121121
.reg_bits = 8,
122122
.val_bits = 8,
123123
.max_register = 0x6f,

0 commit comments

Comments
 (0)