aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2015-01-05 04:09:17 -0500
committerWim Van Sebroeck <wim@iguana.be>2015-02-17 15:31:06 -0500
commit4bd8ce33c0046e81dfc2b4d5886b6b253741261c (patch)
treeb75e6531115bd2d60ff9a4577616cab1f99bf7fb /drivers/watchdog
parent1888e7ad568835debfc7f6dc9d722b2efc55c55d (diff)
watchdog: imx2: Constify struct regmap_config and watchdog_ops
The regmap_config struct may be const because it is not modified by the driver and regmap_init() accepts pointer to const. Make struct watchdog_ops const as well. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Reviewed-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/imx2_wdt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/watchdog/imx2_wdt.c b/drivers/watchdog/imx2_wdt.c
index 5142bbabe027..5e6d808d358a 100644
--- a/drivers/watchdog/imx2_wdt.c
+++ b/drivers/watchdog/imx2_wdt.c
@@ -205,7 +205,7 @@ static inline void imx2_wdt_ping_if_active(struct watchdog_device *wdog)
205 } 205 }
206} 206}
207 207
208static struct watchdog_ops imx2_wdt_ops = { 208static const struct watchdog_ops imx2_wdt_ops = {
209 .owner = THIS_MODULE, 209 .owner = THIS_MODULE,
210 .start = imx2_wdt_start, 210 .start = imx2_wdt_start,
211 .stop = imx2_wdt_stop, 211 .stop = imx2_wdt_stop,
@@ -213,7 +213,7 @@ static struct watchdog_ops imx2_wdt_ops = {
213 .set_timeout = imx2_wdt_set_timeout, 213 .set_timeout = imx2_wdt_set_timeout,
214}; 214};
215 215
216static struct regmap_config imx2_wdt_regmap_config = { 216static const struct regmap_config imx2_wdt_regmap_config = {
217 .reg_bits = 16, 217 .reg_bits = 16,
218 .reg_stride = 2, 218 .reg_stride = 2,
219 .val_bits = 16, 219 .val_bits = 16,