diff options
author | 2025-03-17 10:31:22 +0000 | |
---|---|---|
committer | 2025-04-14 10:12:01 +0100 | |
commit | 3da2859ee5c94771bf8275a27febe56bedd4425a (patch) | |
tree | d3b779ae39798673348f37f994c9f88c2f2efd9c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | firmware: arm_scmi: Ensure scmi_devices are always matched by name as well (diff) | |
download | linux-rng-3da2859ee5c94771bf8275a27febe56bedd4425a.tar.xz linux-rng-3da2859ee5c94771bf8275a27febe56bedd4425a.zip |
firmware: arm_scmi: Refactor device matching logic to eliminate duplication
Currently, the device matching logic is duplicated in two functions:
- scmi_dev_match() used by the scmi_bus to match scmi_devices with
scmi_drivers.
- scmi_child_dev_find() used to check for the presence of a device
with the same name and protocol_id to avoid adding duplicates to
the bus.
Refactor the code to eliminate the redundant matching logic and
consolidates the functionality for better maintainability and efficiency.
Message-Id: <20250317-b4-scmi_minor_cleanup-v2-2-f4be99bd9864@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions