diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-09-04 16:15:53 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2018-10-23 09:58:34 +0200 |
commit | 8e27a5638ab5c1b5434a0c22bc43ec6c3f7f5b6b (patch) | |
tree | 4481f7c1456754c29481842590ee6062ad77b909 /drivers/mfd | |
parent | MAINTAINERS: Add myself as designated reviewer of Intel MFD PMIC (diff) | |
download | linux-8e27a5638ab5c1b5434a0c22bc43ec6c3f7f5b6b.tar.xz linux-8e27a5638ab5c1b5434a0c22bc43ec6c3f7f5b6b.zip |
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/arizona-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c index 057906e3c16e..27b61639cdc7 100644 --- a/drivers/mfd/arizona-core.c +++ b/drivers/mfd/arizona-core.c @@ -990,7 +990,7 @@ static const struct mfd_cell wm8998_devs[] = { int arizona_dev_init(struct arizona *arizona) { - const char * const mclk_name[] = { "mclk1", "mclk2" }; + static const char * const mclk_name[] = { "mclk1", "mclk2" }; struct device *dev = arizona->dev; const char *type_name = NULL; unsigned int reg, val; |