platform/x86: alienware-wmi: Add a state container for thermal control methods
authorKurt Borja <kuurtb@gmail.com>
Fri, 7 Feb 2025 15:45:59 +0000 (10:45 -0500)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 10 Feb 2025 10:56:15 +0000 (12:56 +0200)
commit763c16fb149e12247a733e269e62a459b4b3c76d
treee3e7965f78402c638c265299f4e4d458aade0257
parent898a2302d7c7db0fe604326b9c7c484b71b2bb00
platform/x86: alienware-wmi: Add a state container for thermal control methods

Refactor all thermal control methods to use the newly defined awcc_priv
state container instead of global variables. While at it, rename
create_thermal_profile() to awcc_platform_profile_init() and introduce
alienware_awcc_setup() to set up the "AWCC" WMI device driver data.

Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Signed-off-by: Kurt Borja <kuurtb@gmail.com>
Link: https://lore.kernel.org/r/20250207154610.13675-4-kuurtb@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/dell/alienware-wmi.c