Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nfc: s3fwrn5: make array match static const

Don't populate the read-only array match on the stack, instead make
it static const. Makes the object code smaller by over 310 bytes:

Before:
text data bss dec hex filename
8304 1084 128 9516 252c drivers/nfc/s3fwrn5/firmware.o

After:
text data bss dec hex filename
7894 1180 128 9202 23f2 drivers/nfc/s3fwrn5/firmware.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Colin Ian King and committed by
Samuel Ortiz
5057f664 a122ffd0

+1 -1
+1 -1
drivers/nfc/s3fwrn5/firmware.c
··· 336 336 struct s3fwrn5_fw_cmd_get_bootinfo_rsp *bootinfo, u32 *base_addr) 337 337 { 338 338 int i; 339 - struct { 339 + static const struct { 340 340 u8 version[4]; 341 341 u32 base_addr; 342 342 } match[] = {