]> git.baikalelectronics.ru Git - kernel.git/commit
media: vpx3220: make array input_vals static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Sun, 6 Oct 2019 15:04:29 +0000 (12:04 -0300)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 5 Nov 2019 11:48:55 +0000 (08:48 -0300)
commit00ff249e3591f3dd7e32bf84610df339a6c36b22
tree59bf403e67c4d009939d9411e5dc493871216866
parent5f483baaf48097149bfbf3da9d18d7eb3fc0310b
media: vpx3220: make array input_vals static, makes object smaller

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

Before:
   text    data     bss     dec     hex filename
  11744    3536     128   15408    3c30 drivers/media/i2c/vpx3220.o

After:
   text    data     bss     dec     hex filename
  11574    3600     128   15302    3bc6 drivers/media/i2c/vpx3220.o

(gcc version 9.2.1, amd64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/vpx3220.c