From 4ad921660f3b90139665d03495dd50ac22c05959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Mon, 9 Jun 2025 22:21:27 +0200 Subject: [PATCH] drivers: gpio: rpi_pico: fix typo in gpio_set_dir_masked_n MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gpio_set_dir_masked_n on port 1 should manipulate gpio_hi_oe_togl, not gpio_oe_togl Signed-off-by: Benjamin Cabé --- drivers/gpio/gpio_rpi_pico.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio_rpi_pico.c b/drivers/gpio/gpio_rpi_pico.c index 9aee0d577a3..a0f3866a8df 100644 --- a/drivers/gpio/gpio_rpi_pico.c +++ b/drivers/gpio/gpio_rpi_pico.c @@ -83,7 +83,7 @@ static inline void gpio_set_dir_masked_n(uint n, uint32_t mask, uint32_t value) #if PICO_USE_GPIO_COPROCESSOR gpioc_hi_oe_xor((gpioc_hi_oe_get() ^ value) & mask); #else - sio_hw->gpio_oe_togl = (sio_hw->gpio_hi_oe ^ value) & mask; + sio_hw->gpio_hi_oe_togl = (sio_hw->gpio_hi_oe ^ value) & mask; #endif } }