diff options
| author | Frank Li <Frank.Li@nxp.com> | 2026-05-04 19:54:37 -0400 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2026-05-05 14:48:12 +0200 |
| commit | aaaf31be04260316036f50a05b7d015c0d36b55a (patch) | |
| tree | 4da9b71298adca6a6273cd7a7de7e129ff169507 /include/linux/timerqueue.h | |
| parent | 9e5e1de61db29277d107bd6985c57629df449610 (diff) | |
pinctrl: extract pinctrl_generic_to_map() from pinctrl_generic_pins_function_dt_node_to_map()
Refactor pinctrl_generic_pins_function_dt_subnode_to_map() by separating DT
parsing logic from map creation. Introduce a new helper
pinctrl_generic_to_map() to handle mapping to kernel data structures, while
keeping DT property parsing in the subnode function.
Improve code structure and enables easier reuse for platforms using
different DT properties (e.g. pinmux) without modifying the
dt_node_to_map-style callback API. Avoid unnecessary coupling to
pinctrl_generic_pins_function_dt_node_to_map(), which provides
functionality not needed when the phandle target is unambiguous.
Maximize code reuse and provide a cleaner extension point for future
pinctrl drivers.
Suggested-by: Conor Dooley <conor.dooley@microchip.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
