Skip to content

Commit 76d4157

Browse files
krzklinusw
authored andcommitted
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>
1 parent e2c58cb commit 76d4157

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/pinctrl/pinctrl-st.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,7 @@ static int st_pinconf_get(struct pinctrl_dev *pctldev,
987987

988988
static void st_pinconf_dbg_show(struct pinctrl_dev *pctldev,
989989
struct seq_file *s, unsigned pin_id)
990+
__must_hold(&pctldev->mutex)
990991
{
991992
struct st_pio_control *pc;
992993
unsigned long config;

0 commit comments

Comments
 (0)