linux/drivers/platform/x86/lenovo
Rong Zhang 18a166d29a
platform/x86: lenovo-wmi-capdata: Add debugfs file for dumping capdata
The Lenovo GameZone/Other interfaces have some delicate divergences
among different devices. When making a bug report or adding support for
new devices/interfaces, capdata is the most important information to
cross-check with.

Add a debugfs file (lenovo_wmi/<device_name>/capdata), so that users can
dump capdata and include it in their reports.

Since `struct capdata01' is just an extension to `struct capdata00',
also convert the former to include the latter anonymously
(-fms-extensions, since v6.19). This is declared as a union in the
capdata01 struct, with both the anonymous declaration and as a named
member to avoid type casting when passing just the capdata00 struct
pointer.

Tested-by: Kurt Borja <kuurtb@gmail.com>
Signed-off-by: Rong Zhang <i@rong.moe>
Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com>
Link: https://patch.msgid.link/20260520060740.119554-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>
2026-05-28 14:17:49 +03:00
..
ideapad-laptop.c platform/wmi: Replace .no_notify_data with .min_event_size 2026-04-13 14:11:27 +03:00
ideapad-laptop.h
Kconfig platform/x86: lenovo-wmi-capdata: Add debugfs file for dumping capdata 2026-05-28 14:17:49 +03:00
Makefile platform/x86: Rename lenovo-wmi-capdata01 to lenovo-wmi-capdata 2026-01-21 10:49:51 +02:00
think-lmi.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
think-lmi.h platform/x86: think-lmi: Certificate support for ThinkCenter 2025-09-04 15:48:08 +03:00
thinkpad_acpi.c platform/x86: thinkpad_acpi: Add debugfs entry to display HWDD raw 2026-05-11 19:34:28 +03:00
wmi-camera.c platform/wmi: Replace .no_notify_data with .min_event_size 2026-04-13 14:11:27 +03:00
wmi-capdata.c platform/x86: lenovo-wmi-capdata: Add debugfs file for dumping capdata 2026-05-28 14:17:49 +03:00
wmi-capdata.h platform/x86: lenovo-wmi-capdata: Add debugfs file for dumping capdata 2026-05-28 14:17:49 +03:00
wmi-events.c platform/x86: lenovo-wmi-helpers: Move gamezone enums to wmi-helpers 2026-05-11 14:29:08 +03:00
wmi-events.h
wmi-gamezone.c platform/x86: lenovo-wmi-helpers: Move gamezone enums to wmi-helpers 2026-05-11 14:29:08 +03:00
wmi-helpers.c platform/x86: lenovo-wmi-helpers: Add helper for creating per-device debugfs dir 2026-05-28 14:17:48 +03:00
wmi-helpers.h platform/x86: lenovo-wmi-helpers: Add helper for creating per-device debugfs dir 2026-05-28 14:17:48 +03:00
wmi-hotkey-utilities.c
wmi-other.c platform/x86: lenovo-wmi-other: Add force_load_psy_ext module parameter 2026-05-28 14:17:46 +03:00
ymc.c platform/wmi: Replace .no_notify_data with .min_event_size 2026-04-13 14:11:27 +03:00
yoga-tab2-pro-1380-fastcharger.c platform/x86: x86-android-tablets: convert Yoga Tab2 fast charger to GPIO references 2025-09-26 14:26:25 +03:00
yogabook.c platform/wmi: Replace .no_notify_data with .min_event_size 2026-04-13 14:11:27 +03:00