Commit 2e5632ae authored by Colin Ian King's avatar Colin Ian King Committed by Sebastian Reichel

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: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 9abf2313
...@@ -520,7 +520,7 @@ static int lp8788_set_irqs(struct platform_device *pdev, ...@@ -520,7 +520,7 @@ static int lp8788_set_irqs(struct platform_device *pdev,
static int lp8788_irq_register(struct platform_device *pdev, static int lp8788_irq_register(struct platform_device *pdev,
struct lp8788_charger *pchg) struct lp8788_charger *pchg)
{ {
const char *name[] = { static const char * const name[] = {
LP8788_CHG_IRQ, LP8788_PRSW_IRQ, LP8788_BATT_IRQ LP8788_CHG_IRQ, LP8788_PRSW_IRQ, LP8788_BATT_IRQ
}; };
int i; int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment