power: supply: lp8788: Make several arrays static const * const
authorColin Ian King <colin.king@canonical.com>
Fri, 11 Aug 2017 21:52:12 +0000 (22:52 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>
Sat, 12 Aug 2017 17:58:14 +0000 (13:58 -0400)
commit810e006a82c9482d0353abe37cea68ddf6d76896
tree65fe01d59b291b3c96386ae3729afd0935dec4c8
parent18a89d5c7ce873e5d813a135bf4e12d75b9d95c7
power: supply: lp8788: Make several arrays static const * const

Don't populate various read only arrays on the stack but make them
static const, making the object code smaller and saves 148 bytes
overall:

Before:
   text    data     bss     dec     hex filename
  11940    4496      64   16500    4074 lp8788-charger.o

After:
   text    data     bss     dec     hex filename
  11472    4816      64   16352    3fe0 lp8788-charger.o

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