From: Javier Carrasco Date: Tue, 2 Jul 2024 10:09:32 +0000 (+0200) Subject: hwmon: (tps23861) Constify struct regmap_config X-Git-Tag: v6.11-rc1~212^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f642714b788b993c229fc9839cda15d9c5d965fc;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://lore.kernel.org/r/20240702-hwmon-const-regmap-v1-3-63f6d4765fe0@gmail.com Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/tps23861.c b/drivers/hwmon/tps23861.c index d33ecbac00d6d..dfcfb09d9f3cd 100644 --- a/drivers/hwmon/tps23861.c +++ b/drivers/hwmon/tps23861.c @@ -117,7 +117,7 @@ struct tps23861_data { struct dentry *debugfs_dir; }; -static struct regmap_config tps23861_regmap_config = { +static const struct regmap_config tps23861_regmap_config = { .reg_bits = 8, .val_bits = 8, .max_register = 0x6f,