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

power: supply: bq25980_charger: Constify reg_default array

Static 'struct reg_default' array is not modified so can be changed to
const for more safety.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250528194439.567263-4-krzysztof.kozlowski@linaro.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Krzysztof Kozlowski and committed by
Sebastian Reichel
7cf88213 188014b4

+3 -3
+3 -3
drivers/power/supply/bq25980_charger.c
··· 104 104 int watchdog_timer; 105 105 }; 106 106 107 - static struct reg_default bq25980_reg_defs[] = { 107 + static const struct reg_default bq25980_reg_defs[] = { 108 108 {BQ25980_BATOVP, 0x5A}, 109 109 {BQ25980_BATOVP_ALM, 0x46}, 110 110 {BQ25980_BATOCP, 0x51}, ··· 159 159 {BQ25980_CHRGR_CTRL_6, 0x0}, 160 160 }; 161 161 162 - static struct reg_default bq25975_reg_defs[] = { 162 + static const struct reg_default bq25975_reg_defs[] = { 163 163 {BQ25980_BATOVP, 0x5A}, 164 164 {BQ25980_BATOVP_ALM, 0x46}, 165 165 {BQ25980_BATOCP, 0x51}, ··· 214 214 {BQ25980_CHRGR_CTRL_6, 0x0}, 215 215 }; 216 216 217 - static struct reg_default bq25960_reg_defs[] = { 217 + static const struct reg_default bq25960_reg_defs[] = { 218 218 {BQ25980_BATOVP, 0x5A}, 219 219 {BQ25980_BATOVP_ALM, 0x46}, 220 220 {BQ25980_BATOCP, 0x51},