Skip to content

Commit

Permalink
drivers: i2c: gecko: fix typo of the BUILD_ASSERT
Browse files Browse the repository at this point in the history
In the macro I2C_VALIDATE_LOC, there was a typo preventing the
compilation.

Signed-off-by: Steven Lemaire <[email protected]>
  • Loading branch information
LeGrosFaisan authored and nashif committed Sep 24, 2021
1 parent 1715e39 commit 2aa0bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/i2c_gecko.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static const struct i2c_driver_api i2c_gecko_driver_api = {
#define I2C_VALIDATE_LOC(idx) \
BUILD_ASSERT(DT_INST_PROP_BY_IDX(idx, location_sda, 0) \
== DT_INST_PROP_BY_IDX(idx, location_scl, 0), \
"DTS location-* properties must be equal"))
"DTS location-* properties must be equal")
#define I2C_LOC_DATA(idx) \
.loc = DT_INST_PROP_BY_IDX(idx, location_scl, 0)
#endif
Expand Down

0 comments on commit 2aa0bb2

Please sign in to comment.