Skip to content

Commit 59fe6b8

Browse files
gmarullcarlescufi
authored andcommitted
drivers: kscan: it8xxx2: use instance based macros
Replace usage of DT_DRV_INST with instance based macros. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent fa63671 commit 59fe6b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/kscan/kscan_ite_it8xxx2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ static const struct kscan_it8xxx2_config kscan_it8xxx2_cfg_0 = {
556556
.reg_wuesr3 = DT_INST_REG_ADDR_BY_IDX(0, 2),
557557
.reg_wuenr3 = DT_INST_REG_ADDR_BY_IDX(0, 3),
558558
.irq = DT_INST_IRQN(0),
559-
.gpio_dev = DEVICE_DT_GET(DT_PHANDLE_BY_IDX(DT_DRV_INST(0), gpio_dev, 0)),
559+
.gpio_dev = DEVICE_DT_GET(DT_INST_PHANDLE_BY_IDX(0, gpio_dev, 0)),
560560
.alt_list = kscan_alt_0,
561561
};
562562

0 commit comments

Comments
 (0)