diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2016-07-15 04:15:21 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2016-07-17 15:03:45 -0400 |
commit | aea4b477b96a1e098bdd39a7503eb4163cf65dbb (patch) | |
tree | 90bff1ca2410c51dcd301a7c1e1cfe41b0982384 | |
parent | 80cdd91d3faf8d25977bcbf74613761eef912aab (diff) |
watchdog: bcm2835_wdt: constify _ops and _info structures
These are never modified, so might as well be const.
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
-rw-r--r-- | drivers/watchdog/bcm2835_wdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/watchdog/bcm2835_wdt.c b/drivers/watchdog/bcm2835_wdt.c index 2e6164c4abc0..733e402e80d7 100644 --- a/drivers/watchdog/bcm2835_wdt.c +++ b/drivers/watchdog/bcm2835_wdt.c | |||
@@ -96,7 +96,7 @@ static unsigned int bcm2835_wdt_get_timeleft(struct watchdog_device *wdog) | |||
96 | return WDOG_TICKS_TO_SECS(ret & PM_WDOG_TIME_SET); | 96 | return WDOG_TICKS_TO_SECS(ret & PM_WDOG_TIME_SET); |
97 | } | 97 | } |
98 | 98 | ||
99 | static struct watchdog_ops bcm2835_wdt_ops = { | 99 | static const struct watchdog_ops bcm2835_wdt_ops = { |
100 | .owner = THIS_MODULE, | 100 | .owner = THIS_MODULE, |
101 | .start = bcm2835_wdt_start, | 101 | .start = bcm2835_wdt_start, |
102 | .stop = bcm2835_wdt_stop, | 102 | .stop = bcm2835_wdt_stop, |
@@ -104,7 +104,7 @@ static struct watchdog_ops bcm2835_wdt_ops = { | |||
104 | .get_timeleft = bcm2835_wdt_get_timeleft, | 104 | .get_timeleft = bcm2835_wdt_get_timeleft, |
105 | }; | 105 | }; |
106 | 106 | ||
107 | static struct watchdog_info bcm2835_wdt_info = { | 107 | static const struct watchdog_info bcm2835_wdt_info = { |
108 | .options = WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE | | 108 | .options = WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE | |
109 | WDIOF_KEEPALIVEPING, | 109 | WDIOF_KEEPALIVEPING, |
110 | .identity = "Broadcom BCM2835 Watchdog timer", | 110 | .identity = "Broadcom BCM2835 Watchdog timer", |