]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
watchdog: w83627hf: make const array chip_name static
authorColin Ian King <colin.king@canonical.com>
Tue, 11 Jul 2017 15:23:34 +0000 (16:23 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Sat, 9 Sep 2017 18:08:03 +0000 (20:08 +0200)
commit08b10b57d69bb37d6e70a8db71844527a9f1f41c
tree3461d09b2829b9f8187e9271228a7a6a5e2f85f9
parent9215fc79521a05debba3ba67668caeb65d204cc7
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>
drivers/watchdog/w83627hf_wdt.c