Skip to content

Commit d7acf66

Browse files
Benjamin CabéChromeos LUCI
authored andcommitted
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. (cherry picked from commit 1787e5c) Original-Signed-off-by: Benjamin Cabé <[email protected]> GitOrigin-RevId: 1787e5c Cr-Build-Id: 8711840798614211969 Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8711840798614211969 Copybot-Job-Name: zephyr-main-copybot-downstream Change-Id: I4d1124c692afc0f8432617971e92970237fc2966 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/6650438 Reviewed-by: Yuval Peress <[email protected]> Commit-Queue: Yuval Peress <[email protected]> Tested-by: Yuval Peress <[email protected]> Tested-by: ChromeOS Copybot <[email protected]>
1 parent 99d55e5 commit d7acf66

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)