mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 12:21:22 -05:00
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:
committed by
Sebastian Reichel
parent
6af8ffab2d
commit
188014b425
@@ -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_CHARGER_CONTROL_0, 0x1a},
|
||||
{BQ256XX_CHARGE_CURRENT_LIMIT, 0xa2},
|
||||
@@ -398,7 +398,7 @@ static struct reg_default bq2560x_reg_defs[] = {
|
||||
{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_CHARGER_CONTROL_0, 0x1a},
|
||||
{BQ256XX_CHARGE_CURRENT_LIMIT, 0x91},
|
||||
@@ -411,7 +411,7 @@ static struct reg_default bq25611d_reg_defs[] = {
|
||||
{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_CHARGER_CONTROL_0, 0x1a},
|
||||
{BQ256XX_CHARGE_CURRENT_LIMIT, 0x91},
|
||||
|
||||
Reference in New Issue
Block a user