i2c: amd-mp2-plat: ACPI: Use ACPI_COMPANION() directly
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Oct 2021 16:09:39 +0000 (18:09 +0200)
committerWolfram Sang <wsa@kernel.org>
Sun, 7 Nov 2021 13:57:41 +0000 (14:57 +0100)
commitc6f49acb52c79f8e84af2eda4fc002a2068a6c9e
tree6c91ad9ce5354f03018fa8b246a4e48a6562315b
parent76eb4db611e1012cbdc2461540fe6bb9d40a0f27
i2c: amd-mp2-plat: 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 i2c_amd_probe() accordingly (no intentional functional impact).

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-amd-mp2-plat.c