]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: arizona: Make array mclk_name static, shrinks object size
authorColin Ian King <colin.king@canonical.com>
Tue, 4 Sep 2018 14:15:53 +0000 (15:15 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 23 Oct 2018 07:58:34 +0000 (08:58 +0100)
commit464430261e538c864c0d33d55d550d7d2d5c50f0
tree4481f7c1456754c29481842590ee6062ad77b909
parent60e7426778decc452b3f9228f7e3040497a55819
mfd: arizona: Make array mclk_name static, shrinks object size

Don't populate the array mclk_name on the stack but instead make it
static. Makes the object code smaller by 23 bytes:

Before:
   text    data     bss     dec     hex filename
  38050   11604      64   49718    c236 linux/drivers/mfd/arizona-core.o

After:
   text    data     bss     dec     hex filename
  38027   11604      64   49695    c21f linux/drivers/mfd/arizona-core.o

(gcc version 8.2.0 x86_64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/arizona-core.c