drivers: gpio: fix bug with Px15 pins

Fix condition in pin number check so that PA15, PB15, etc. can be properly
accessed..

Co-authored-by: Денис <baden.i.ua@gmail.com>
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2024-05-02 11:54:31 +02:00 committed by Anas Nashif
parent 274bd59283
commit 003f145314

View file

@ -48,7 +48,7 @@ static int gpio_numaker_configure(const struct device *dev, gpio_pin_t pin, gpio
ARG_UNUSED(data);
/* Check for an invalid pin number */
if (pin >= 15) {
if (pin > 15) {
return -EINVAL;
}