surface: surface3-wmi: Use ACPI_COMPANION() directly
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Oct 2021 16:10:55 +0000 (18:10 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 19 Oct 2021 14:55:43 +0000 (16:55 +0200)
commit5558871360f3fed77b432e9257f3bf90fca7580e
tree869b0c693b5740dcb6987a52dc7d3e68069b57a0
parent603a7dd08f881e1b5c754429dac5af6c29992528
surface: surface3-wmi: 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 s3_wmi_check_platform_device() accordingly (no intentional
functional impact).

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/12896717.uLZWGnKmhe@kreacher
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/surface/surface3-wmi.c