Skip to content

Commit 89cc06e

Browse files
ananglcarlescufi
authored andcommitted
drivers: gpio_pcal6408a: Fix handling of the GPIO_INT_DEBOUNCE flag
Ignore the flag instead of rejecting it with -ENOTSUP, as this is what the GPIO API expects from drivers that do not support debouncing. Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent b2a4a36 commit 89cc06e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/gpio/gpio_pcal6408a.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,9 @@ static int pcal6408a_pin_configure(const struct device *dev,
124124
int rc;
125125

126126
/* This device does not support open-source outputs, and open-drain
127-
* outputs can be only configured port-wise. It also does not support
128-
* debouncing.
127+
* outputs can be only configured port-wise.
129128
*/
130-
if ((flags & GPIO_SINGLE_ENDED) != 0 ||
131-
(flags & GPIO_INT_DEBOUNCE) != 0) {
129+
if ((flags & GPIO_SINGLE_ENDED) != 0) {
132130
return -ENOTSUP;
133131
}
134132

0 commit comments

Comments
 (0)