aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-10-07 07:18:48 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-10-10 07:21:46 -0300
commit59251a8be3c258c6ce59dcce703ce440a4e03b82 (patch)
treee03af6e6c1e05f1cfb2f296dc1329191c7239bc8 /drivers/media/usb
parentmedia: cx18: make array mapping static, makes object smaller (diff)
downloadlinux-dev-59251a8be3c258c6ce59dcce703ce440a4e03b82.tar.xz
linux-dev-59251a8be3c258c6ce59dcce703ce440a4e03b82.zip
media: gspca: make array st6422_bridge_init static, makes object smaller
Don't populate the array st6422_bridge_init on the stack but instead make it static. Makes the object code smaller by 231 bytes. Before: text data bss dec hex filename 3419 752 64 4235 108b gspca/stv06xx/stv06xx_st6422.o After: text data bss dec hex filename 3124 816 64 4004 fa4 gspca/stv06xx/stv06xx_st6422.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+samsung@kernel.org>
Diffstat (limited to 'drivers/media/usb')
-rw-r--r--drivers/media/usb/gspca/stv06xx/stv06xx_st6422.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/gspca/stv06xx/stv06xx_st6422.c b/drivers/media/usb/gspca/stv06xx/stv06xx_st6422.c
index 7104a88b1e43..aac19d449be2 100644
--- a/drivers/media/usb/gspca/stv06xx/stv06xx_st6422.c
+++ b/drivers/media/usb/gspca/stv06xx/stv06xx_st6422.c
@@ -117,7 +117,7 @@ static int st6422_init(struct sd *sd)
{
int err = 0, i;
- const u16 st6422_bridge_init[][2] = {
+ static const u16 st6422_bridge_init[][2] = {
{ STV_ISO_ENABLE, 0x00 }, /* disable capture */
{ 0x1436, 0x00 },
{ 0x1432, 0x03 }, /* 0x00-0x1F brightness */