power: supply: bd99954: make read-only array sub_status_reg
authorColin Ian King <colin.i.king@gmail.com>
Tue, 27 Jun 2023 12:17:07 +0000 (13:17 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 19 Jul 2023 21:12:36 +0000 (23:12 +0200)
commit7b9fc309c0b57c5b1230bf3e0a8bb9e937eb6529
tree410f042b5135f8942391010df8623c7c292a8ee9
parentda28e18d6a31448a5f67e59e835669e930f8c044
power: supply: bd99954: make read-only array sub_status_reg

Don't populate the read-only array on the stack, instead make it
static const.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bd99954-charger.c