OSDN Git Service

perf: qcom_l2_pmu: ACPI: Use ACPI_COMPANION() directly
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Oct 2021 16:15:33 +0000 (18:15 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 27 Oct 2021 18:38:22 +0000 (20:38 +0200)
commitd5a8fb654c3bfc25d585802d2e63a5ccccd7a912
tree1db405f6476cf5512e8698287f1d94f06aeeaadc
parentf0b2731ba73ba795a45c8f3fd458da2e0117fd60
perf: qcom_l2_pmu: ACPI: Use ACPI_COMPANION() directly

The ACPI_HANDLE() macro is a wrapper arond the ACPI_COMPANION()
macro and the ACPI handle produced by the former comes from the
ACPI device object produced by the latter, so it is way more
straightforward to evaluate the latter directly instead of passing
the handle produced by the former to acpi_bus_get_device().

Modify l2_cache_pmu_probe_cluster() accordingly (no intentional
functional impact).

While at it, rename the ACPI device pointer to adev for more
clarity.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/perf/qcom_l2_pmu.c