drivers: watchdog: Use common name configuration for all drivers
Each driver seemed to use their own Kconfig option to set the name for their drivers. This makes writing example/test code difficult as each one of them will have to special case for each of the supported platforms. Use a consistent CONFIG_WDT_0_NAME option in all drivers. Fixes #8094. Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
This commit is contained in:
parent
eefeb2b050
commit
158ea970ea
11 changed files with 15 additions and 40 deletions
|
@ -228,7 +228,7 @@ static const struct wdt_driver_api wdt_api = {
|
|||
.reload = wdt_esp32_reload
|
||||
};
|
||||
|
||||
DEVICE_AND_API_INIT(wdt_esp32, CONFIG_WDT_ESP32_DEVICE_NAME, wdt_esp32_init,
|
||||
DEVICE_AND_API_INIT(wdt_esp32, CONFIG_WDT_0_NAME, wdt_esp32_init,
|
||||
&shared_data, NULL,
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
&wdt_api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue