Skip to content

Commit 1787e5c

Browse files
committed
drivers: misc: fix condition in gpio_ra_interrupt_unset function
Updated the condition in the gpio_ra_interrupt_unset function to use a logical OR instead of AND, since it should return if either port_num or pin is not the same as the current callback. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent cfc6527 commit 1787e5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/misc/renesas_ra_external_interrupt/renesas_ra_external_interrupt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ void gpio_ra_interrupt_unset(const struct device *dev, uint8_t port_num, uint8_t
107107
const struct gpio_ra_irq_config *config = dev->config;
108108
struct gpio_ra_irq_data *data = dev->data;
109109

110-
if ((port_num != data->callback.port_num) && (pin != data->callback.pin)) {
110+
if ((port_num != data->callback.port_num) || (pin != data->callback.pin)) {
111111
return;
112112
}
113113

0 commit comments

Comments
 (0)