Files
linux/Documentation/driver-api
Alex Tran 2dddb2792b 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
2025-08-29 15:49:18 -06:00
..
2025-08-18 10:17:49 -06:00
2023-04-26 15:43:19 -07:00
2024-09-05 12:13:39 +02:00
2024-05-02 10:02:29 -06:00
2024-10-21 16:19:32 -05:00
2024-04-18 16:20:48 +02:00
2025-05-19 09:04:21 -06:00
2023-07-24 12:12:24 +02:00
2024-05-10 11:15:21 -06:00
2022-06-10 15:38:14 +02:00
2024-05-02 10:02:29 -06:00