power: supply: lp8788: make const array name static
authorColin Ian King <colin.i.king@gmail.com>
Wed, 5 Oct 2022 16:13:48 +0000 (17:13 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 28 Oct 2022 13:53:46 +0000 (15:53 +0200)
commit2e5632aef677cc2e22cbc76704526b51e29b3a7b
treeb698234cbadf4ea9631db2c37ab82c0a23940129
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
power: supply: lp8788: make const array name static

Don't populate the read-only array name on the stack but instead make
it static. Since the data and the pointers don't change also add in
a missing const. Also makes the object code a little smaller.

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