Skip to content

Commit ae681c4

Browse files
seankyerkartben
authored andcommitted
drivers: counter: counter_max32_wut: Rename irq_config callback
Renamed irq_config callback function to follow standard of other drivers. Signed-off-by: Sean Kyer <Sean.Kyer@analog.com>
1 parent b476fa7 commit ae681c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/counter/counter_max32_wut.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct max32_wut_config {
3434
mxc_wut_regs_t *regs;
3535
int clock_source;
3636
int prescaler;
37-
void (*irq_func)(const struct device *dev);
37+
void (*irq_config)(const struct device *dev);
3838
uint32_t irq_number;
3939
bool wakeup_source;
4040
};
@@ -205,7 +205,7 @@ static void counter_max32_wut_hw_init(const struct device *dev)
205205

206206
Wrap_MXC_SYS_Select32KClockSource(cfg->clock_source);
207207

208-
cfg->irq_func(dev);
208+
cfg->irq_config(dev);
209209

210210
if (cfg->wakeup_source) {
211211
MXC_LP_EnableWUTAlarmWakeup();
@@ -291,7 +291,7 @@ static const struct counter_driver_api counter_max32_wut_driver_api = {
291291
.clock_source = \
292292
DT_PROP_OR(TIMER(_num), clock_source, ADI_MAX32_PRPH_CLK_SRC_ERTCO), \
293293
.prescaler = DT_PROP(TIMER(_num), prescaler), \
294-
.irq_func = max32_wut_irq_init_##_num, \
294+
.irq_config = max32_wut_irq_init_##_num, \
295295
.irq_number = DT_IRQN(TIMER(_num)), \
296296
.wakeup_source = DT_PROP(TIMER(_num), wakeup_source), \
297297
}; \

0 commit comments

Comments
 (0)