Skip to content

Commit 50ebaed

Browse files
yassine-safraouinashif
authored andcommitted
drivers: i2c: xmc47_relax_kit: fix clock frequency macro
The xmc47_relax_kit i2c driver is incorrectly using the I2C_SPEED_STANDARD macro to set the clock frequency. The correct macro to use is XMC4_I2C_SPEED_STANDARD which is defined by the XMC4 driver. Signed-off-by: Yassine Safraoui <yassine.safraoui@grenoble-inp.org>
1 parent b82944e commit 50ebaed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/i2c_ifx_xmc4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ static DEVICE_API(i2c, i2c_xmc4_driver_api) = {
470470
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(n), \
471471
.scl_src = DT_INST_ENUM_IDX(n, scl_src), \
472472
.sda_src = DT_INST_ENUM_IDX(n, sda_src), \
473-
.bitrate = DT_INST_PROP_OR(n, clock_frequency, I2C_SPEED_STANDARD), \
473+
.bitrate = DT_INST_PROP_OR(n, clock_frequency, XMC4_I2C_SPEED_STANDARD), \
474474
XMC4_IRQ_HANDLER_STRUCT_INIT(n) \
475475
}; \
476476
\

0 commit comments

Comments
 (0)