PCI/ACPI: Use acpi_evaluate_dsm_typed()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 2 Oct 2023 13:53:52 +0000 (16:53 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 3 Oct 2023 17:03:43 +0000 (12:03 -0500)
commit8624ebc300b2418b498cb85463682afc9bde5d54
tree20dec0e76040eea193cadbd2aef22d4938c514ea
parent83c088148c8e5c439eec6c7651692f797547e1a8
PCI/ACPI: Use acpi_evaluate_dsm_typed()

The acpi_evaluate_dsm_typed() provides a way to check the type of the
object evaluated by _DSM call. Use it instead of open coded variant.

Link: https://lore.kernel.org/r/20231002135352.2603096-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: "Rafael J. Wysocki" <rafael@kernel.org>
drivers/pci/pci-acpi.c