From: Julia Lawall Date: Sun, 28 Aug 2016 20:26:26 +0000 (+0200) Subject: watchdog: iTCO_wdt: constify iTCO_wdt_pm structure X-Git-Tag: v4.9-rc1~34^2~17 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6e938f6e86a54ba22324a8e4f8c0fb774cffa273;p=karo-tx-linux.git watchdog: iTCO_wdt: constify iTCO_wdt_pm structure 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 Reviewed-by: Guenter Roeck Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c index 54cab189a763..06fcb6c8c917 100644 --- a/drivers/watchdog/iTCO_wdt.c +++ b/drivers/watchdog/iTCO_wdt.c @@ -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, };