diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2016-08-28 23:26:26 +0300 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2016-09-24 09:49:51 +0300 |
commit | 6e938f6e86a54ba22324a8e4f8c0fb774cffa273 (patch) | |
tree | a6f86a17594637c47f4c0b938b260661a4e10c12 /drivers/watchdog | |
parent | eadc4fe17d04723373ada219d382b3b413b21dad (diff) | |
download | linux-6e938f6e86a54ba22324a8e4f8c0fb774cffa273.tar.xz |
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 <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>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/iTCO_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, }; |