From 942cb4ea816eac6ba35282273c9119d0225b73aa Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Wed, 28 Apr 2021 12:13:52 +0200 Subject: [PATCH] drivers: watchdog: wdt_esp32: fix coding style issues Some lines were unnecessarily > 100 columns. They produced compliance failures. Signed-off-by: Gerard Marull-Paretas --- drivers/watchdog/wdt_esp32.c | 64 ++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/drivers/watchdog/wdt_esp32.c b/drivers/watchdog/wdt_esp32.c index 643b1a23ead..07864694def 100644 --- a/drivers/watchdog/wdt_esp32.c +++ b/drivers/watchdog/wdt_esp32.c @@ -224,38 +224,38 @@ static const struct wdt_driver_api wdt_api = { .feed = wdt_esp32_feed }; -#define ESP32_WDT_INIT(idx) \ - static void wdt_esp32_connect_irq_func##idx(void) \ - { \ - esp32_rom_intr_matrix_set(0, ETS_TG##idx##_WDT_LEVEL_INTR_SOURCE, \ - CONFIG_WDT##idx##_ESP32_IRQ); \ - IRQ_CONNECT(CONFIG_WDT##idx##_ESP32_IRQ, \ - 4, \ - wdt_esp32_isr, \ - DEVICE_DT_INST_GET(idx), \ - 0); \ - } \ - \ - static struct wdt_esp32_data wdt##idx##_data; \ - static struct wdt_esp32_config wdt_esp32_config##idx = { \ - .base = (struct wdt_esp32_regs_t *) DT_INST_REG_ADDR(idx), \ - .irq_regs = { \ - .timer_int_ena = (uint32_t *)TIMG_INT_ENA_TIMERS_REG(idx), \ - .timer_int_clr = (uint32_t *)TIMG_INT_CLR_TIMERS_REG(idx), \ - }, \ - .irq = { \ - .source = ETS_TG##idx##_WDT_LEVEL_INTR_SOURCE, \ - .line = CONFIG_WDT##idx##_ESP32_IRQ, \ - }, \ - .connect_irq = wdt_esp32_connect_irq_func##idx \ - }; \ - \ - DEVICE_DT_INST_DEFINE(idx, \ - wdt_esp32_init, \ - NULL, \ - &wdt##idx##_data, \ - &wdt_esp32_config##idx, \ - PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \ +#define ESP32_WDT_INIT(idx) \ + static void wdt_esp32_connect_irq_func##idx(void) \ + { \ + esp32_rom_intr_matrix_set(0, ETS_TG##idx##_WDT_LEVEL_INTR_SOURCE, \ + CONFIG_WDT##idx##_ESP32_IRQ); \ + IRQ_CONNECT(CONFIG_WDT##idx##_ESP32_IRQ, \ + 4, \ + wdt_esp32_isr, \ + DEVICE_DT_INST_GET(idx), \ + 0); \ + } \ + \ + static struct wdt_esp32_data wdt##idx##_data; \ + static struct wdt_esp32_config wdt_esp32_config##idx = { \ + .base = (struct wdt_esp32_regs_t *) DT_INST_REG_ADDR(idx), \ + .irq_regs = { \ + .timer_int_ena = (uint32_t *)TIMG_INT_ENA_TIMERS_REG(idx), \ + .timer_int_clr = (uint32_t *)TIMG_INT_CLR_TIMERS_REG(idx), \ + }, \ + .irq = { \ + .source = ETS_TG##idx##_WDT_LEVEL_INTR_SOURCE, \ + .line = CONFIG_WDT##idx##_ESP32_IRQ, \ + }, \ + .connect_irq = wdt_esp32_connect_irq_func##idx \ + }; \ + \ + DEVICE_DT_INST_DEFINE(idx, \ + wdt_esp32_init, \ + NULL, \ + &wdt##idx##_data, \ + &wdt_esp32_config##idx, \ + PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \ &wdt_api) static void wdt_esp32_isr(const struct device *dev)