]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
watchdog: iTCO_wdt: constify iTCO_wdt_pm structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 28 Aug 2016 20:26:26 +0000 (22:26 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Sat, 24 Sep 2016 06:49:51 +0000 (08:49 +0200)
iTCO_wdt_pm, of type struct dev_pm_ops, is never modified, so declare it as
const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
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/iTCO_wdt.c

index 54cab189a763ff2ec4abeb218cee01e03ec5c608..06fcb6c8c9172379dd320aaaed10f368cdced739 100644 (file)
@@ -629,7 +629,7 @@ static int iTCO_wdt_resume_noirq(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops iTCO_wdt_pm = {
+static const struct dev_pm_ops iTCO_wdt_pm = {
        .suspend_noirq = iTCO_wdt_suspend_noirq,
        .resume_noirq = iTCO_wdt_resume_noirq,
 };