power: supply: bq256xx_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-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
Krzysztof Kozlowski 2025-05-28 21:44:40 +02:00 committed by Sebastian Reichel
parent 6af8ffab2d
commit 188014b425
1 changed files with 3 additions and 3 deletions

View File

@ -387,7 +387,7 @@ static void bq256xx_usb_work(struct work_struct *data)
} }
} }
static struct reg_default bq2560x_reg_defs[] = { static const struct reg_default bq2560x_reg_defs[] = {
{BQ256XX_INPUT_CURRENT_LIMIT, 0x17}, {BQ256XX_INPUT_CURRENT_LIMIT, 0x17},
{BQ256XX_CHARGER_CONTROL_0, 0x1a}, {BQ256XX_CHARGER_CONTROL_0, 0x1a},
{BQ256XX_CHARGE_CURRENT_LIMIT, 0xa2}, {BQ256XX_CHARGE_CURRENT_LIMIT, 0xa2},
@ -398,7 +398,7 @@ static struct reg_default bq2560x_reg_defs[] = {
{BQ256XX_CHARGER_CONTROL_3, 0x4c}, {BQ256XX_CHARGER_CONTROL_3, 0x4c},
}; };
static struct reg_default bq25611d_reg_defs[] = { static const struct reg_default bq25611d_reg_defs[] = {
{BQ256XX_INPUT_CURRENT_LIMIT, 0x17}, {BQ256XX_INPUT_CURRENT_LIMIT, 0x17},
{BQ256XX_CHARGER_CONTROL_0, 0x1a}, {BQ256XX_CHARGER_CONTROL_0, 0x1a},
{BQ256XX_CHARGE_CURRENT_LIMIT, 0x91}, {BQ256XX_CHARGE_CURRENT_LIMIT, 0x91},
@ -411,7 +411,7 @@ static struct reg_default bq25611d_reg_defs[] = {
{BQ256XX_CHARGER_CONTROL_4, 0x75}, {BQ256XX_CHARGER_CONTROL_4, 0x75},
}; };
static struct reg_default bq25618_619_reg_defs[] = { static const struct reg_default bq25618_619_reg_defs[] = {
{BQ256XX_INPUT_CURRENT_LIMIT, 0x17}, {BQ256XX_INPUT_CURRENT_LIMIT, 0x17},
{BQ256XX_CHARGER_CONTROL_0, 0x1a}, {BQ256XX_CHARGER_CONTROL_0, 0x1a},
{BQ256XX_CHARGE_CURRENT_LIMIT, 0x91}, {BQ256XX_CHARGE_CURRENT_LIMIT, 0x91},