diff options
| author | Javier Carrasco <[email protected]> | 2024-07-02 12:09:32 +0200 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2024-07-02 11:31:30 -0700 |
| commit | f642714b788b993c229fc9839cda15d9c5d965fc (patch) | |
| tree | f5fdb6b56c5b721410c8f0f545dbbf2167e8dc92 | |
| parent | 4bc82dd20be09fa133bf3116be6afc933497f860 (diff) | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
| -rw-r--r-- | drivers/hwmon/tps23861.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/tps23861.c b/drivers/hwmon/tps23861.c index d33ecbac00d6..dfcfb09d9f3c 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, |