ACPI: platform_profile: Create class for ACPI platform profile
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 6 Dec 2024 03:19:06 +0000 (21:19 -0600)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 10 Dec 2024 17:18:01 +0000 (19:18 +0200)
commit77be5cacb2c2d8c3ddd069f0b4e9408f553af1d8
treeeaa6330ebac372da03080ccee155376dc346896f
parent1f3ac55c2e65af30a37a460a1a7cc5c7eb74747d
ACPI: platform_profile: Create class for ACPI platform profile

When registering a platform profile handler create a class device
that will allow changing a single platform profile handler.

The class and sysfs group are no longer needed when the platform profile
core is a module and unloaded, so remove them at that time as well.

Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Tested-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20241206031918.1537-11-mario.limonciello@amd.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/acpi/platform_profile.c
include/linux/platform_profile.h