diff options
author | Zicheng Qu <quzicheng@huawei.com> | 2024-11-02 09:25:25 +0000 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-11-02 15:18:52 +0000 |
commit | 3993ca4add248f0f853f54f9273a7de850639f33 (patch) | |
tree | a0d682d43b958a0972a9eb49e1e969798dbebcc7 /tools/perf/scripts/python/task-analyzer.py | |
parent | bfa335f18d91c52fa0f8ba3e4d49afebbd9ee792 (diff) | |
download | linux-3993ca4add248f0f853f54f9273a7de850639f33.tar.gz linux-3993ca4add248f0f853f54f9273a7de850639f33.tar.bz2 linux-3993ca4add248f0f853f54f9273a7de850639f33.zip |
iio: Fix fwnode_handle in __fwnode_iio_channel_get_by_name()
In the fwnode_iio_channel_get_by_name(), iterating over parent nodes to
acquire IIO channels via fwnode_for_each_parent_node(). The variable
chan was mistakenly attempted on the original node instead of the
current parent node. This patch corrects the logic to ensure that
__fwnode_iio_channel_get_by_name() is called with the correct parent
node.
Cc: stable@vger.kernel.org # v6.6+
Fixes: 1e64b9c5f9a0 ("iio: inkern: move to fwnode properties")
Signed-off-by: Zicheng Qu <quzicheng@huawei.com>
Link: https://patch.msgid.link/20241102092525.2389952-1-quzicheng@huawei.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions