ACPI: Move ACPI_DEVICE_CLASS() to mod_devicetable.h
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 9 Jun 2023 15:48:58 +0000 (18:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Jun 2023 11:34:30 +0000 (13:34 +0200)
commit007cfa13e034a1a2973967cbbe31e70c19e2bf31
tree2e1b447639e213eaef4fb900dced6cd1eb841af4
parent16b58423b4c33dfd9622dcfc93bc5ce35c17ce72
ACPI: Move ACPI_DEVICE_CLASS() to mod_devicetable.h

The data type of struct acpi_device_id is defined in the
mod_devicetable.h. It's suboptimal to require user with
the almost agnostic code to include acpi.h solely for the
macro that affects the data type defined elsewhere.

Taking into account the above and for the sake of consistency
move ACPI_DEVICE_CLASS() to mod_devicetable.h.

Note, that with CONFIG_ACPI=n the ID table will be filed with data
but it does not really matter because either it won't be used, or
won't be compiled in some cases (when guarded by respective ifdeffery).

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Message-ID: <20230609154900.43024-2-andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/acpi.h
include/linux/mod_devicetable.h