diff options
author | Zhang Zekun <zhangzekun11@huawei.com> | 2024-08-21 06:40:21 +0300 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2024-09-13 12:56:33 +0300 |
commit | f253f6d922da29d0d7091801cbc9b4166c3959fe (patch) | |
tree | bf4b5ae3918039504b833cfc52e577692a43d3c1 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 9e5eb7403cb6023642e48fc293f519ce5e8e8d8d (diff) | |
download | linux-f253f6d922da29d0d7091801cbc9b4166c3959fe.tar.xz |
pmdomain: qcom-cpr: Use helper function for_each_available_child_of_node()
for_each_available_child_of_node() can help to iterate through the
device_node, and we don't need to use while loop. Besides, the purpose
of the while loop is to find a device_node which fits the condition
"child_req_np == ref_np", we can just read the property of "child_np"
directly in for_each_available_child_of_node(). No functional change
with such conversion.
Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
Link: https://lore.kernel.org/r/20240821034022.27394-2-zhangzekun11@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions