pinctrl: th1520: Convert dt child node loop to scoped iterator
authorDrew Fustini <dfustini@tenstorrent.com>
Wed, 9 Oct 2024 01:16:48 +0000 (18:16 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 9 Oct 2024 12:42:07 +0000 (14:42 +0200)
commit573cba282788c90b4ed01e21b9d3ba522fdcda17
treee3a977acc35f001d9306c967e1d2f5d2b52f8a70
parentf3a3d006a443e3e39f97b4e71a8d134cda417109
pinctrl: th1520: Convert dt child node loop to scoped iterator

Convert th1520_pinctrl_dt_node_to_map() to use a scoped iterator with
for_each_available_child_of_node_scoped(). As a result, there is no need
to call of_node_put() anymore. The put_child label has been renamed to
free_map which is now a more accurate description.

Suggested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Drew Fustini <dfustini@tenstorrent.com>
Link: https://lore.kernel.org/20241008-th1520-pinctrl-fixes-v3-3-5b60db446a49@tenstorrent.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-th1520.c