From 097cbc099fc894f2f968de8a49c72ef27bca009a Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Thu, 5 Mar 2020 23:51:31 +0900 Subject: [PATCH] drivers: i2c: i2c_sam0: Fix interrupt connection 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 --- drivers/i2c/i2c_sam0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/i2c_sam0.c b/drivers/i2c/i2c_sam0.c index deb1fb9734b..65473ff9849 100644 --- a/drivers/i2c/i2c_sam0.c +++ b/drivers/i2c/i2c_sam0.c @@ -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) \ { \