counter: mcux_gpt: whitespace cosmetics
Discovered when making unrelated changes. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
b4d172dd84
commit
763a9433a7
1 changed files with 7 additions and 7 deletions
|
@ -201,11 +201,11 @@ static const struct counter_driver_api mcux_gpt_driver_api = {
|
|||
.get_max_relative_alarm = mcux_gpt_get_max_relative_alarm,
|
||||
};
|
||||
|
||||
#define GPT_DEVICE_INIT_MCUX(n) \
|
||||
#define GPT_DEVICE_INIT_MCUX(n) \
|
||||
static struct mcux_gpt_data mcux_gpt_data_ ## n; \
|
||||
\
|
||||
static const struct mcux_gpt_config mcux_gpt_config_ ## n = { \
|
||||
.base = (void *)DT_INST_REG_ADDR(n), \
|
||||
static const struct mcux_gpt_config mcux_gpt_config_ ## n = { \
|
||||
.base = (void *)DT_INST_REG_ADDR(n), \
|
||||
.clock_source = kCLOCK_PerClk, \
|
||||
.info = { \
|
||||
.max_top_value = UINT32_MAX, \
|
||||
|
@ -217,7 +217,7 @@ static const struct counter_driver_api mcux_gpt_driver_api = {
|
|||
\
|
||||
static int mcux_gpt_## n ##_init(struct device *dev); \
|
||||
DEVICE_AND_API_INIT(mcux_gpt ## n, \
|
||||
DT_INST_LABEL(n), \
|
||||
DT_INST_LABEL(n), \
|
||||
mcux_gpt_## n ##_init, \
|
||||
&mcux_gpt_data_ ## n, \
|
||||
&mcux_gpt_config_ ## n, \
|
||||
|
@ -226,10 +226,10 @@ static const struct counter_driver_api mcux_gpt_driver_api = {
|
|||
\
|
||||
static int mcux_gpt_## n ##_init(struct device *dev) \
|
||||
{ \
|
||||
IRQ_CONNECT(DT_INST_IRQN(n), \
|
||||
DT_INST_IRQ(n, priority), \
|
||||
IRQ_CONNECT(DT_INST_IRQN(n), \
|
||||
DT_INST_IRQ(n, priority), \
|
||||
mcux_gpt_isr, DEVICE_GET(mcux_gpt ## n), 0); \
|
||||
irq_enable(DT_INST_IRQN(n)); \
|
||||
irq_enable(DT_INST_IRQN(n)); \
|
||||
return mcux_gpt_init(dev); \
|
||||
} \
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue