Skip to content
Permalink
Browse files

drivers: sam0: Fix deprecated IRQ macro usage

During conversion in #16937 a few IRQ macro aliases where missed
(probably due to lack of enabled test cases that compile them),
this fixes their usage.

Signed-off-by: Derek Hageman <hageman@inthat.cloud>
  • Loading branch information...
Sizurka authored and nashif committed Jun 22, 2019
1 parent 2ee674f commit 4c27e5b72e1891777b4ea20c1311c7855852afbb
Showing with 6 additions and 6 deletions.
  1. +3 −3 drivers/adc/adc_sam0.c
  2. +3 −3 drivers/counter/counter_sam0_tc32.c
@@ -597,12 +597,12 @@ static const struct adc_driver_api adc_sam0_api = {
&adc_sam0_api); \
static void adc_sam0_config_##n(struct device *dev) \
{ \
IRQ_CONNECT(DT_ATMEL_SAM0_ADC_ADC_##n##_IRQ, \
DT_ATMEL_SAM0_ADC_ADC_##n##_IRQ_PRIORITY, \
IRQ_CONNECT(DT_ATMEL_SAM0_ADC_ADC_##n##_IRQ_0, \
DT_ATMEL_SAM0_ADC_ADC_##n##_IRQ_0_PRIORITY, \
adc_sam0_isr, \
DEVICE_GET(adc0_sam_##n), \
0); \
irq_enable(DT_ATMEL_SAM0_ADC_ADC_##n##_IRQ); \
irq_enable(DT_ATMEL_SAM0_ADC_ADC_##n##_IRQ_0); \
ADC_SAM0_CONFIGURE(n); \
}

@@ -432,12 +432,12 @@ static const struct counter_driver_api counter_sam0_tc32_driver_api = {
&counter_sam0_tc32_driver_api); \
static void counter_sam0_tc32_config_##n(struct device *dev) \
{ \
IRQ_CONNECT(DT_ATMEL_SAM0_TC32_TC_##n##_IRQ, \
DT_ATMEL_SAM0_TC32_TC_##n##_IRQ_PRIORITY, \
IRQ_CONNECT(DT_ATMEL_SAM0_TC32_TC_##n##_IRQ_0, \
DT_ATMEL_SAM0_TC32_TC_##n##_IRQ_0_PRIORITY, \
counter_sam0_tc32_isr, \
DEVICE_GET(counter_sam0_tc32_##n), \
0); \
irq_enable(DT_ATMEL_SAM0_TC32_TC_##n##_IRQ); \
irq_enable(DT_ATMEL_SAM0_TC32_TC_##n##_IRQ_0); \
}

#if DT_ATMEL_SAM0_TC32_TC_0_BASE_ADDRESS

0 comments on commit 4c27e5b

Please sign in to comment.
You can’t perform that action at this time.