mirror of
https://github.com/torvalds/linux
synced 2024-09-06 01:40:28 +00:00
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>
This commit is contained in:
parent
da28e18d6a
commit
7b9fc309c0
|
@ -536,7 +536,7 @@ static irqreturn_t bd9995x_irq_handler_thread(int irq, void *private)
|
|||
|
||||
for_each_set_bit(i, &tmp, 7) {
|
||||
int sub_status, sub_mask;
|
||||
int sub_status_reg[] = {
|
||||
static const int sub_status_reg[] = {
|
||||
INT1_STATUS, INT2_STATUS, INT3_STATUS, INT4_STATUS,
|
||||
INT5_STATUS, INT6_STATUS, INT7_STATUS,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue