]> git.baikalelectronics.ru Git - kernel.git/commit
gpio-amdpt: ACPI: Use the ACPI_COMPANION() macro directly
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Oct 2021 16:06:40 +0000 (18:06 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 26 Oct 2021 13:49:47 +0000 (15:49 +0200)
commitba3b336ab6f50db5ba83b04e19206bf609f6fe92
tree07059246f2f8bdc63b844e3bcd24225bc1d8c788
parentf04b253e1e30456d422c0831a04c4ffdfb327d67
gpio-amdpt: ACPI: Use the ACPI_COMPANION() macro 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 pt_gpio_probe() accordingly (no intentional functional impact).

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-amdpt.c