drivers: gpio: rgpio: not support GPIO_DISCONNECTED

The hardware don't support GPIO_DISCONNECTED.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
This commit is contained in:
Jiafei Pan 2025-05-13 17:11:00 +08:00 committed by Dan Kalowsky
commit a6af366eb5

View file

@ -56,6 +56,10 @@ static int mcux_rgpio_configure(const struct device *dev,
struct pinctrl_soc_pin pin_cfg;
int cfg_idx = pin, i;
if (flags == GPIO_DISCONNECTED) {
return -ENOTSUP;
}
/* Make sure pin is supported */
if ((config->common.port_pin_mask & BIT(pin)) == 0) {
return -ENOTSUP;