Commit c0e6629b authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Fabio Baltieri
Browse files

input: npcx_kbd: setup the interrupt to falling edge only

The driver works on active low signals only, change the interrupt
configuration to trigger on falling edges only.

Signed-off-by: default avatarFabio Baltieri <fabiobaltieri@google.com>
parent a7dccc44
Loading
Loading
Loading
Loading
+1 −1
Changes for drivers/input/input_npcx_kbd.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ static void npcx_kbd_init_ksi_wui_callback(const struct device *dev,
	npcx_miwu_manage_callback(callback, 1);

	/* Configure MIWU setting and enable its interrupt */
	npcx_miwu_interrupt_configure(wui, NPCX_MIWU_MODE_EDGE, NPCX_MIWU_TRIG_BOTH);
	npcx_miwu_interrupt_configure(wui, NPCX_MIWU_MODE_EDGE, NPCX_MIWU_TRIG_LOW);
	npcx_miwu_irq_enable(wui);
}