]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: st: Annotate st_pinconf_dbg_show() as holding mutex
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Sun, 18 Jan 2026 18:09:34 +0000 (19:09 +0100)
committerLinus Walleij <linusw@kernel.org>
Mon, 19 Jan 2026 00:11:47 +0000 (01:11 +0100)
commit76d415763bae9488dd2b923b1348ce6f26c1f0ae
tree5ff2a6fd9211997bc13aa72387aad410ffd26434
parente2c58cbe3aff49fe201e81ee5f651294e313ec74
pinctrl: st: Annotate st_pinconf_dbg_show() as holding mutex

st_pinconf_dbg_show() unlocks and locks the pinctrl_dev mutex, so it
must be called by the pinctrl core with the mutex hold.  Annotate the
function with sparse __must_hold, so any changes in pinctrl locking will
be statically detected.

Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/pinctrl-st.c