From 807a103653c0c636eb68d3fa14186eb9121c4c8b Mon Sep 17 00:00:00 2001 From: Marcus Shawcroft Date: Mon, 24 Oct 2016 08:15:43 +0100 Subject: [PATCH] watchdog/iwdg_stm32: Limit name space, add static. Change-Id: I497e2afe0a0e700c1fb95ef50338d44e601248df Signed-off-by: Marcus Shawcroft --- drivers/watchdog/iwdg_stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/iwdg_stm32.c b/drivers/watchdog/iwdg_stm32.c index e4392317cac..2b6ff2ba773 100644 --- a/drivers/watchdog/iwdg_stm32.c +++ b/drivers/watchdog/iwdg_stm32.c @@ -76,7 +76,7 @@ static void iwdg_stm32_reload(struct device *dev) iwdg->kr.bit.key = STM32_IWDG_KR_RELOAD; } -static struct wdt_driver_api iwdg_stm32_api = { +static const struct wdt_driver_api iwdg_stm32_api = { .enable = iwdg_stm32_enable, .disable = iwdg_stm32_disable, .get_config = iwdg_stm32_get_config,