Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ACPI: scan: Register platform devices for thermal zones

Currently, platform devices are not registered for ACPI thermal zones
because they are not represented as device objects in the ACPI namespace.
Instead, they are represented as thermal zone objects, so in particular
the platform_id flag is not set for them during enumeration because it
is only set for objects of type ACPI_BUS_TYPE_DEVICE, but otherwise they
are handled similarly at the ACPI core level.

To facilitate converting the ACPI thermal zone driver into a platform
one, modify acpi_set_pnp_ids() to set the platform_id flag for thermal
zones in analogy with device objects to cause platform devices to be
registered for them.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: lihuisong@huawei.com
Link: https://patch.msgid.link/4701463.LvFx2qVVIh@rafael.j.wysocki

+1
+1
drivers/acpi/scan.c
··· 1469 1469 break; 1470 1470 case ACPI_BUS_TYPE_THERMAL: 1471 1471 acpi_add_id(pnp, ACPI_THERMAL_HID); 1472 + pnp->type.platform_id = 1; 1472 1473 break; 1473 1474 case ACPI_BUS_TYPE_POWER_BUTTON: 1474 1475 acpi_add_id(pnp, ACPI_BUTTON_HID_POWERF);