diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-01-06 11:03:27 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-06 06:05:12 -0500 |
commit | 79d6e6e6581cc5397cb179dd2a442d18e423897a (patch) | |
tree | 4c024ff4e2a46256c7fbc1bcc48ce8411973f471 /drivers/media/platform/exynos4-is | |
parent | c00ba2c1230042e2c46f1466c20f395cab0d9b11 (diff) | |
download | lwn-79d6e6e6581cc5397cb179dd2a442d18e423897a.tar.gz lwn-79d6e6e6581cc5397cb179dd2a442d18e423897a.zip |
media: exynos4-is: make array 'cmd' static, shrinks object size
Don't populate the const read-only array 'cmd' on the stack but instead
make it static. Makes the object code smaller by 38 bytes:
Before:
text data bss dec hex filename
4950 868 0 5818 16ba fimc-is-regs.o
After:
text data bss dec hex filename
4824 956 0 5780 1694 fimc-is-regs.o
(gcc version 7.2.0 x86_64)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/exynos4-is')
-rw-r--r-- | drivers/media/platform/exynos4-is/fimc-is-regs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/exynos4-is/fimc-is-regs.c b/drivers/media/platform/exynos4-is/fimc-is-regs.c index cfe4406a83ff..e0e291066037 100644 --- a/drivers/media/platform/exynos4-is/fimc-is-regs.c +++ b/drivers/media/platform/exynos4-is/fimc-is-regs.c @@ -159,7 +159,7 @@ void fimc_is_hw_load_setfile(struct fimc_is *is) int fimc_is_hw_change_mode(struct fimc_is *is) { - const u8 cmd[] = { + static const u8 cmd[] = { HIC_PREVIEW_STILL, HIC_PREVIEW_VIDEO, HIC_CAPTURE_STILL, HIC_CAPTURE_VIDEO, }; |