watchdog: wdt_nrfx: don't zero init static

Don't zero initialise the static data structure, as statics are
explicitly initialised to 0 per the C standard, and checkpatch normally
complains about the pattern.

Signed-off-by: Jordan Yates <jordan@embeint.com>
This commit is contained in:
Jordan Yates 2024-07-04 16:25:36 +10:00 committed by Alberto Escolar
parent 23afa2124f
commit 0010dec4f0

View file

@ -209,10 +209,7 @@ static void wdt_event_handler(const struct device *dev, nrf_wdt_event_t event_ty
} \
return 0; \
} \
static struct wdt_nrfx_data wdt_##idx##_data = { \
.m_timeout = 0, \
.m_allocated_channels = 0, \
}; \
static struct wdt_nrfx_data wdt_##idx##_data; \
static const struct wdt_nrfx_config wdt_##idx##z_config = { \
.wdt = NRFX_WDT_INSTANCE(idx), \
}; \