summaryrefslogtreecommitdiff
path: root/tools/docs/lib/parse_data_structs.py
diff options
context:
space:
mode:
authorAlex Tran <alex.t.tran@gmail.com>2025-08-27 00:45:25 -0700
committerJonathan Corbet <corbet@lwn.net>2025-08-29 15:49:18 -0600
commit2dddb2792b2ea6571ff44e46a6f7f11400073c9a (patch)
tree1f7bef940c84d94a597136a01e6b7435e1568d69 /tools/docs/lib/parse_data_structs.py
parentee9a6691935490dc39605882b41b9452844d5e4e (diff)
docs: driver-api pinctrl cleanup
Replace FIXME comments in the pinctrl documentation example with proper cleanup code: - Add devm_pinctrl_put() calls in error paths (pinctrl_lookup_state, pinctrl_select_state) after successful devm_pinctrl_get() - Set foo->p to NULL when devm_pinctrl_get() fails - Add ret variable for cleaner error handling - provides proper example of pinctrl resource management on failure Signed-off-by: Alex Tran <alex.t.tran@gmail.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20250827074525.685863-1-alex.t.tran@gmail.com
Diffstat (limited to 'tools/docs/lib/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions