platform/x86: xo15-ebook: Replace open coded acpi_match_acpi_device()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 10 Oct 2023 13:39:36 +0000 (16:39 +0300)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 12 Oct 2023 13:33:49 +0000 (16:33 +0300)
commit39789590cff4043d81774d03777dabf7ba263176
tree075c2ccabeef76da7be94ab29d3bd39017c6b75b
parent48173b0003c5dc556e262e1b57c25efc36db1c6a
platform/x86: xo15-ebook: Replace open coded acpi_match_acpi_device()

Replace open coded acpi_match_acpi_device() in ebook_switch_add().

Note, while it is a bit longer it is more robust in case
more IDs will be added.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231010133936.3891996-1-andriy.shevchenko@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/xo15-ebook.c