From 1b28cb0ff12effc320fb2fa07fc2dab5d73497cf Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Tue, 4 Jun 2019 10:42:48 +0200 Subject: [PATCH] drivers/wdt: Rename STM32 IWDG files to follow naming rules Basically, all driver file names should start with the driver type as prefix: wdt_ in case of watchdogs here. Maybe 'iwdg' keyword could be removed entirely, and also in function names. However that is not the scope of this patch. Signed-off-by: Tomasz Bursztyka --- drivers/watchdog/CMakeLists.txt | 2 +- drivers/watchdog/{iwdg_stm32.c => wdt_iwdg_stm32.c} | 2 +- drivers/watchdog/{iwdg_stm32.h => wdt_iwdg_stm32.h} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename drivers/watchdog/{iwdg_stm32.c => wdt_iwdg_stm32.c} (99%) rename drivers/watchdog/{iwdg_stm32.h => wdt_iwdg_stm32.h} (100%) diff --git a/drivers/watchdog/CMakeLists.txt b/drivers/watchdog/CMakeLists.txt index 94a2c2ba0a1..98ad051aa12 100644 --- a/drivers/watchdog/CMakeLists.txt +++ b/drivers/watchdog/CMakeLists.txt @@ -1,7 +1,7 @@ # SPDX-License-Identifier: Apache-2.0 zephyr_sources_ifdef(CONFIG_WDT_QMSI wdt_qmsi.c) -zephyr_sources_ifdef(CONFIG_IWDG_STM32 iwdg_stm32.c) +zephyr_sources_ifdef(CONFIG_IWDG_STM32 wdt_iwdg_stm32.c) zephyr_sources_ifdef(CONFIG_WDOG_CMSDK_APB wdog_cmsdk_apb.c) zephyr_sources_ifdef(CONFIG_WDT_SAM wdt_sam.c) zephyr_sources_ifdef(CONFIG_WDT_ESP32 wdt_esp32.c) diff --git a/drivers/watchdog/iwdg_stm32.c b/drivers/watchdog/wdt_iwdg_stm32.c similarity index 99% rename from drivers/watchdog/iwdg_stm32.c rename to drivers/watchdog/wdt_iwdg_stm32.c index 925d06b90b5..62cc6f2a7e6 100644 --- a/drivers/watchdog/iwdg_stm32.c +++ b/drivers/watchdog/wdt_iwdg_stm32.c @@ -11,7 +11,7 @@ #include #include -#include "iwdg_stm32.h" +#include "wdt_iwdg_stm32.h" /* Minimal timeout in microseconds. */ #define IWDG_TIMEOUT_MIN 100 diff --git a/drivers/watchdog/iwdg_stm32.h b/drivers/watchdog/wdt_iwdg_stm32.h similarity index 100% rename from drivers/watchdog/iwdg_stm32.h rename to drivers/watchdog/wdt_iwdg_stm32.h