]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86: lenovo-wmi-helpers: Move gamezone enums to wmi-helpers
authorDerek J. Clark <derekjohn.clark@gmail.com>
Sun, 10 May 2026 04:25:37 +0000 (04:25 +0000)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 11 May 2026 11:29:08 +0000 (14:29 +0300)
commit7e27896e16a1c450085c3fe020eeb1b223880f37
treea3fb65c37653435bf91999a81df97add999175e8
parente8d5460ad3fd22409f2566ecbe2c82d94aabc246
platform/x86: lenovo-wmi-helpers: Move gamezone enums to wmi-helpers

In a later patch in the series the thermal mode enum will be accessed
across three separate drivers (wmi-capdata, wmi-gamezonem and wmi-other).
An additional patch in the series will also add a function prototype that
needs to reference this enum in wmi-helpers.h. To avoid having all these
drivers begin to import each others headers, and to avoid declaring an
opaque enum to hande the second case, move the thermal mode enum to
helpers where it can be safely accessed by everything that needs it from
a single import.

While at it, since the gamezone_events_type enum is the only remaining
item in the header, move that as well and remove the gamezone header
entirely.

Cc: stable@vger.kernel.org
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: Rong Zhang <i@rong.moe>
Tested-by: Rong Zhang <i@rong.moe>
Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com>
Link: https://patch.msgid.link/20260510042546.436874-8-derekjohn.clark@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/lenovo/wmi-events.c
drivers/platform/x86/lenovo/wmi-gamezone.c
drivers/platform/x86/lenovo/wmi-gamezone.h [deleted file]
drivers/platform/x86/lenovo/wmi-helpers.h
drivers/platform/x86/lenovo/wmi-other.c