[ACPI] Register a device interface class with ACPI fans

As the commit title says, the point of registering a device interface with ACPI fans is to receive incoming PnP notifications of incoming ACPI fan drivers so that the power manager can connect to them by creating a power device policies dedicated to them during power manager initialization.

CORE-18969
This commit is contained in:
George Bișoc
2024-05-22 20:23:06 +02:00
parent 0b97a997d2
commit f69e256376
+8
View File
@@ -76,6 +76,14 @@ Bus_PDO_PnP (
NULL,
&DeviceData->InterfaceName);
}
else if (device->flags.hardware_id &&
strstr(device->pnp.hardware_id, ACPI_FAN_HID))
{
status = IoRegisterDeviceInterface(DeviceData->Common.Self,
&GUID_DEVICE_FAN,
NULL,
&DeviceData->InterfaceName);
}
else if (device->flags.hardware_id &&
strstr(device->pnp.hardware_id, ACPI_BUTTON_HID_LID))
{