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 <root@stephanos.io>
This commit is contained in:
Stephanos Ioannidis 2020-03-05 23:51:31 +09:00 committed by Johan Hedberg
parent e440838c25
commit 097cbc099f

View file

@ -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) \
{ \