]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
watchdog: zx2967: constify zx2967_wdt_ops.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Mon, 12 Jun 2017 06:32:39 +0000 (12:02 +0530)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 3 Jul 2017 11:53:34 +0000 (13:53 +0200)
File size before:
   text    data     bss     dec     hex filename
    988     288       0    1276     4fc drivers/watchdog/zx2967_wdt.o

File size After adding 'const':
   text    data     bss     dec     hex filename
   1084     192       0    1276     4fc drivers/watchdog/zx2967_wdt.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.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/zx2967_wdt.c

index c98252733c3069dc5528691cecdee279c8f35c5a..69ec5855584b1a2a894fd061ad6bf7cdc87018cd 100644 (file)
@@ -154,7 +154,7 @@ static const struct watchdog_info zx2967_wdt_ident = {
        .identity         =     "zx2967 watchdog",
 };
 
-static struct watchdog_ops zx2967_wdt_ops = {
+static const struct watchdog_ops zx2967_wdt_ops = {
        .owner = THIS_MODULE,
        .start = zx2967_wdt_start,
        .stop = zx2967_wdt_stop,