Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08b10b57 authored by Colin Ian King's avatar Colin Ian King Committed by Wim Van Sebroeck
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 9215fc79
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -429,7 +429,7 @@ static int __init wdt_init(void)
{
	int ret;
	int chip;
	const char * const chip_name[] = {
	static const char * const chip_name[] = {
		"W83627HF",
		"W83627S",
		"W83697HF",