Skip to content

Commit 7b9fc30

Browse files
ColinIanKingsre
authored andcommitted
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>
1 parent da28e18 commit 7b9fc30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/power/supply/bd99954-charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ static irqreturn_t bd9995x_irq_handler_thread(int irq, void *private)
536536

537537
for_each_set_bit(i, &tmp, 7) {
538538
int sub_status, sub_mask;
539-
int sub_status_reg[] = {
539+
static const int sub_status_reg[] = {
540540
INT1_STATUS, INT2_STATUS, INT3_STATUS, INT4_STATUS,
541541
INT5_STATUS, INT6_STATUS, INT7_STATUS,
542542
};

0 commit comments

Comments
 (0)