Skip to content

Commit

Permalink
drivers: i2c: rv32m1: Fix compilation errors
Browse files Browse the repository at this point in the history
This fixes compilation errors caused by using invalid macro parameters.

Signed-off-by: Mariusz Skamra <[email protected]>
  • Loading branch information
MariuszSkamra authored and fabiobaltieri committed Apr 25, 2023
1 parent d291761 commit 6a92ebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/i2c/i2c_rv32m1_lpi2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ static const struct i2c_driver_api rv32m1_lpi2c_driver_api = {
};

#define RV32M1_LPI2C_DEVICE(id) \
PINCTRL_DT_INST_DEFINE(n); \
PINCTRL_DT_INST_DEFINE(id); \
static void rv32m1_lpi2c_irq_config_func_##id(const struct device *dev); \
static const struct rv32m1_lpi2c_config rv32m1_lpi2c_##id##_config = { \
.base = \
Expand All @@ -272,7 +272,7 @@ static const struct i2c_driver_api rv32m1_lpi2c_driver_api = {
.clock_ip_src = kCLOCK_IpSrcFircAsync, \
.bitrate = DT_INST_PROP(id, clock_frequency), \
.irq_config_func = rv32m1_lpi2c_irq_config_func_##id, \
.pincfg = PINCTRL_DT_INST_DEV_CONFIG_GET(n), \
.pincfg = PINCTRL_DT_INST_DEV_CONFIG_GET(id), \
}; \
static struct rv32m1_lpi2c_data rv32m1_lpi2c_##id##_data = { \
.transfer_sync = Z_SEM_INITIALIZER( \
Expand Down

0 comments on commit 6a92ebf

Please sign in to comment.