Skip to content

Commit 1a5676d

Browse files
Siyuan Chengcarlescufi
authored andcommitted
ARC: boards: hsdk: fix cy8c95xx I2C GPIO port init
cy8c95xx I2C GPIO support was broken in commit 4b30008 due to wrong i2c bus and addr were wrote during GPIO_PORT_INIT. Now fix this issue. Signed-off-by: Siyuan Cheng <[email protected]>
1 parent e5c532d commit 1a5676d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio_cy8c95xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ static const struct cy8c95xx_config cy8c95xx_##idx##_cfg = { \
287287
.common = { \
288288
.port_pin_mask = 0xFF, \
289289
}, \
290-
.i2c = I2C_DT_SPEC_INST_GET(idx), \
290+
.i2c = I2C_DT_SPEC_GET(DT_PARENT(DT_INST(idx, DT_DRV_COMPAT))), \
291291
.port_num = DT_INST_REG_ADDR(idx), \
292292
}; \
293293
static struct cy8c95xx_drv_data cy8c95xx_##idx##_drvdata = { \

0 commit comments

Comments
 (0)