platform/x86: alienware-wmi: Add a state container for LED control feature
authorKurt Borja <kuurtb@gmail.com>
Fri, 7 Feb 2025 15:45:57 +0000 (10:45 -0500)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 10 Feb 2025 10:56:11 +0000 (12:56 +0200)
commit4c546de990543b303ad130276316ca868ba599f9
tree584f7f99900a58c153e6396aa9ce526f807c43e8
parent56f529ce4370757afe57b2e51810348831183398
platform/x86: alienware-wmi: Add a state container for LED control feature

Add a state container for the "alienware-wmi" platform device and
initialize it on the new alienfx_probe(). Migrate all LED control functions
to use this state container to support upcoming file split.

Additionally move the led_classdev registration to the platform driver
probe and make it device managed.

Drop alienware_zone_init() and alienware_zone_exit() because they are no
longer needed and mimic the `quirks->num_zone > 0` check by failing the
platform device probe.

Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Signed-off-by: Kurt Borja <kuurtb@gmail.com>
Link: https://lore.kernel.org/r/20250207154610.13675-2-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