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

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Colin Ian King and committed by
Sebastian Reichel
7b9fc309 da28e18d

+1 -1
+1 -1
drivers/power/supply/bd99954-charger.c
··· 536 536 537 537 for_each_set_bit(i, &tmp, 7) { 538 538 int sub_status, sub_mask; 539 - int sub_status_reg[] = { 539 + static const int sub_status_reg[] = { 540 540 INT1_STATUS, INT2_STATUS, INT3_STATUS, INT4_STATUS, 541 541 INT5_STATUS, INT6_STATUS, INT7_STATUS, 542 542 };