]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86: lenovo-wmi-helpers: Add helper for creating per-device debugfs dir
authorRong Zhang <i@rong.moe>
Wed, 20 May 2026 06:07:39 +0000 (06:07 +0000)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 28 May 2026 11:17:48 +0000 (14:17 +0300)
commit229e575451e4e65db47bb1873be0ccab764d9f3d
treeab9c39d1bcbb75415ed7f63298a6d06ac5e5d107
parentfb8e9629efbab67135f801f5ec5e91307e7693c2
platform/x86: lenovo-wmi-helpers: Add helper for creating per-device debugfs dir

We are about to add debugfs support for lenovo-wmi-capdata. Let's setup
a debugfs directory called "lenovo_wmi" for tidiness, so that any
lenovo-wmi-* device can put its subdirectory under the directory.
Subdirectories will be named after the corresponding WMI devices.

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-7-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-helpers.c
drivers/platform/x86/lenovo/wmi-helpers.h