platform/x86: lenovo: gamezone needs "other mode"
authorArnd Bergmann <arnd@arndb.de>
Wed, 9 Jul 2025 15:17:28 +0000 (17:17 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 11 Jul 2025 15:35:10 +0000 (18:35 +0300)
commit6e38b9fcbfa3053e1b5d2806a7233078d712bd34
tree1cfe06145d72963535f8e402475decccea589951
parent6382c27389c266e90b31151a79d81fa6e122d2d6
platform/x86: lenovo: gamezone needs "other mode"

Registering the "other mode" notifier fails if that is disabled:

x86_64-linux-ld: drivers/platform/x86/lenovo/wmi-gamezone.o: in function `lwmi_gz_probe':
wmi-gamezone.c:(.text+0x336): undefined reference to `devm_lwmi_om_register_notifier'

This could be fixed by adding a stub helper, but a Kconfig 'select'
seems simpler here.

Fixes: 22024ac5366f ("platform/x86: Add Lenovo Gamezone WMI Driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250709151734.1268435-1-arnd@kernel.org
[ij: retained the other selects as wmi-gamezone is using them directly.]
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/lenovo/Kconfig