coresight: Simplify connection fixup mechanism
authorJames Clark <james.clark@arm.com>
Tue, 25 Apr 2023 14:35:35 +0000 (15:35 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 5 Jun 2023 14:46:46 +0000 (15:46 +0100)
commit102162dbac89b35eb04f3bd621d3673b0676637a
tree144be11226070179e7ced2a469e5678d31d07ae0
parent4e8fe7e5c3a5e48295a6745727a6703adab8ff7f
coresight: Simplify connection fixup mechanism

There is some duplication between coresight_fixup_device_conns() and
coresight_fixup_orphan_conns(). They both do the same thing except for
the fact that coresight_fixup_orphan_conns() can't handle iterating over
itself.

By making it able to handle fixing up it's own connections the other
function can be removed.

Reviewed-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: James Clark <james.clark@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230425143542.2305069-9-james.clark@arm.com
drivers/hwtracing/coresight/coresight-core.c