]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: introduce pinctrl_gpio_get_config()
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Mon, 23 Mar 2026 19:01:10 +0000 (22:01 +0300)
committerLinus Walleij <linusw@kernel.org>
Tue, 24 Mar 2026 12:50:30 +0000 (13:50 +0100)
commit96b76f7bc575ac6c69090f4642e424b04fb6784c
tree662c4d89de282381cac589e943e1705ae08a850c
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
pinctrl: introduce pinctrl_gpio_get_config()

This is a counterpart of pinctrl_gpio_set_config(), which will be used
to implement the ->get() interface in a GPIO driver for SCMI.

This also requires that we create a stub so pin_config_get_for_pin()
can build when CONFIG_PINCONF is disabled.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/core.c
drivers/pinctrl/pinconf.h
include/linux/pinctrl/consumer.h