]> git.baikalelectronics.ru Git - kernel.git/commit
platform: x86: ideapad-laptop: Use ACPI_COMPANION() directly
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Oct 2021 16:13:51 +0000 (18:13 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 19 Oct 2021 14:55:56 +0000 (16:55 +0200)
commitb93a720f2c8ff8e0e45357780bc1ecfbfb815958
tree31912a79631faebab26110cc395e7ad788fb9fce
parent66607ab6b36b149df6c2ccfddfd8bbe43cc2cb8d
platform: x86: ideapad-laptop: 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 ideapad_acpi_add() accordingly (no intentional functional
impact).

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/8000884.T7Z3S40VBb@kreacher
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/ideapad-laptop.c