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
|
@ -153,6 +153,6 @@ static int wdt_sam0_init(struct device *dev)
|
|||
|
||||
static struct wdt_sam0_dev_data wdt_sam0_data;
|
||||
|
||||
DEVICE_AND_API_INIT(wdt_sam0, CONFIG_WDT_SAM0_LABEL, wdt_sam0_init,
|
||||
DEVICE_AND_API_INIT(wdt_sam0, CONFIG_WDT_0_NAME, wdt_sam0_init,
|
||||
&wdt_sam0_data, NULL, PRE_KERNEL_1,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &wdt_sam0_api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue