Skip to content

Commit 6fe59b7

Browse files
Colin Ian Kingmchehab
authored andcommitted
media: em28xx-input: make const array addr_list static
Don't populate the array addr_list on the stack but instead make it static. Makes the object code smaller by 20 bytes Before: text data bss dec hex filename^M 16929 3626 384 20939 51cb ../usb/em28xx/em28xx-input.o After: text data bss dec hex filename^M 16829 3706 384 20919 51b7 ../usb/em28xx/em28xx-input.o (gcc version 8.3.0, aarch64) Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
1 parent c51f3b7 commit 6fe59b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/usb/em28xx/em28xx-input.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ static int em28xx_probe_i2c_ir(struct em28xx *dev)
499499
* at address 0x18, so if that address is needed for another board in
500500
* the future, please put it after 0x1f.
501501
*/
502-
const unsigned short addr_list[] = {
502+
static const unsigned short addr_list[] = {
503503
0x1f, 0x30, 0x47, I2C_CLIENT_END
504504
};
505505

0 commit comments

Comments
 (0)