mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 18:09:57 +00:00
![Rafael J. Wysocki](/assets/img/avatar_default.png)
The ACPI fan device IDs are shared between the fan driver and the
device power management code. The former is modular, so it needs
to include the table of device IDs for module autoloading and the
latter needs that list to avoid attaching the generic ACPI PM domain
to fan devices (which doesn't make sense) possibly before the fan
driver module is loaded.
Unfortunately, that requires the list of fan device IDs to be
updated in two places which is prone to mistakes, so put it into
a symbol definition in a separate header file so there is only one
copy of it in case it needs to be updated again in the future.
Fixes: b9ea0bae26
("ACPI: PM: Avoid attaching ACPI PM domain to certain devices")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
13 lines
414 B
C
13 lines
414 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
/*
|
|
* ACPI fan device IDs are shared between the fan driver and the device power
|
|
* management code.
|
|
*
|
|
* Add new device IDs before the generic ACPI fan one.
|
|
*/
|
|
#define ACPI_FAN_DEVICE_IDS \
|
|
{"INT3404", }, /* Fan */ \
|
|
{"INTC1044", }, /* Fan for Tiger Lake generation */ \
|
|
{"INTC1048", }, /* Fan for Alder Lake generation */ \
|
|
{"PNP0C0B", } /* Generic ACPI fan */
|