]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: pinconf-generic: Handle string values for generic properties
authorAntonio Borneo <antonio.borneo@foss.st.com>
Thu, 23 Oct 2025 13:26:50 +0000 (15:26 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 28 Oct 2025 09:43:01 +0000 (10:43 +0100)
commit90a18c512884adb49ddc2fb30e94594169aae808
tree3eafa919e085fdb0da7345d22c2201e010312cb9
parent4a6cc9655fcc46690de5c517c9a6dbbed1a7932e
pinctrl: pinconf-generic: Handle string values for generic properties

Allow a generic pinconf property to specify its argument as one of
the strings in a match list.
Convert the matching string to an integer value using the index in
the list, then keep using this value in the generic pinconf code.

Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinconf-generic.c
include/linux/pinctrl/pinconf-generic.h