Skip to content

Commit

Permalink
drivers: i2c: i2c_sam0: Fix interrupt connection
Browse files Browse the repository at this point in the history
This commit fixes the multiple SERCOM interrupt handling for the SAM
D5x and E5x devices by replacing the obsolete device tree symbol with
the new `DT_INST` symbol.

Signed-off-by: Stephanos Ioannidis <[email protected]>
  • Loading branch information
stephanosio authored and jhedberg committed Mar 10, 2020
1 parent e440838 commit 097cbc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/i2c_sam0.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ static const struct i2c_driver_api i2c_sam0_driver_api = {
irq_enable(DT_ATMEL_SAM0_I2C_SERCOM_IRQ(n, m)); \
} while (0)

#ifdef DT_ATMEL_SAM0_I2C_0_IRQ_3
#ifdef DT_INST_0_ATMEL_SAM0_I2C_IRQ_3
#define I2C_SAM0_IRQ_HANDLER(n) \
static void i2c_sam0_irq_config_##n(struct device *dev) \
{ \
Expand Down

0 comments on commit 097cbc0

Please sign in to comment.