diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-10-16 23:22:35 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-10-26 20:56:58 +0000 |
commit | 390d828f56a602c9201601bff1170d9d2bf5801c (patch) | |
tree | 3e90553d6c1c78d9412181ba8790e4877caf1fbb /usr | |
parent | 01c77cae836a998c4f69fa6349b31121bdaffd0c (diff) | |
download | linux-stable-390d828f56a602c9201601bff1170d9d2bf5801c.tar.gz linux-stable-390d828f56a602c9201601bff1170d9d2bf5801c.tar.bz2 linux-stable-390d828f56a602c9201601bff1170d9d2bf5801c.zip |
regulator: lp872x: make a const array static, makes object smaller
Don't populate const array lp872x_num_regulators on the stack but
instead make it static. Makes the object code smaller by 29 bytes.
Before:
text data bss dec hex filename
18441 4624 64 23129 5a59 drivers/regulator/lp872x.o
After:
text data bss dec hex filename
18316 4720 64 23100 5a3c drivers/regulator/lp872x.o
(gcc version 10.2.0)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20201016222235.686981-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions