Skip to content

Commit 32a8721

Browse files
ananglcarlescufi
authored andcommitted
drivers: pinctrl_nrf: Fix nrf_pin_configure() implementation
This is a follow-up to commit fd07675. The above commit was supposed to introduce overriding of the S0S1 drive setting with S0D1 for TWI/TWIM peripherals, but since it did not properly update the `nrf_pin_configure()` function (the `drive` parameter was only added in the function signature, but then it was not used...), the drive setting was in fact not overridden. This commit corrects this embarrassing oversight. Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent 57ea3b8 commit 32a8721

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pinctrl/pinctrl_nrf.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ __unused static void nrf_pin_configure(pinctrl_soc_pin_t pin,
9595
input = NRF_GPIO_PIN_INPUT_DISCONNECT;
9696
}
9797

98-
nrf_gpio_cfg(NRF_GET_PIN(pin), dir, input, NRF_GET_PULL(pin),
99-
NRF_GET_DRIVE(pin), NRF_GPIO_PIN_NOSENSE);
98+
nrf_gpio_cfg(NRF_GET_PIN(pin), dir, input, NRF_GET_PULL(pin), drive,
99+
NRF_GPIO_PIN_NOSENSE);
100100
}
101101

102102
int pinctrl_configure_pins(const pinctrl_soc_pin_t *pins, uint8_t pin_cnt,

0 commit comments

Comments
 (0)