gpio: rockchip: Call pinctrl for gpio config

Pinctrl is responsible for bias settings and possibly other pin config,
so call gpiochip_generic_config to apply such config values. This might
also include settings that pinctrl does not support, but then it can
return ENOTSUPP as appropriate.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Signed-off-by: Linus Walleij <linusw@kernel.org>
This commit is contained in:
Matthijs Kooijman 2026-03-02 21:17:17 +01:00 committed by Linus Walleij
parent 8f72335002
commit bf64b1bae2

View File

@ -296,7 +296,7 @@ static int rockchip_gpio_set_config(struct gpio_chip *gc, unsigned int offset,
*/
return -ENOTSUPP;
default:
return -ENOTSUPP;
return gpiochip_generic_config(gc, offset, config);
}
}