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

watchdog: w83627hf: make const array chip_name static

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

Before:
text data bss dec hex filename
5641 2840 384 8865 22a1 drivers/watchdog/w83627hf_wdt.o

After:
text data bss dec hex filename
5545 2896 384 8825 2279 drivers/watchdog/w83627hf_wdt.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

authored by

Colin Ian King and committed by
Wim Van Sebroeck
08b10b57 9215fc79

+1 -1
+1 -1
drivers/watchdog/w83627hf_wdt.c
··· 429 429 { 430 430 int ret; 431 431 int chip; 432 - const char * const chip_name[] = { 432 + static const char * const chip_name[] = { 433 433 "W83627HF", 434 434 "W83627S", 435 435 "W83697HF",