]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86: x86-android-tablets: use swnode_group instead of manual registering
authorHans de Goede <hansg@kernel.org>
Sat, 20 Sep 2025 20:07:06 +0000 (22:07 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 26 Sep 2025 11:26:32 +0000 (14:26 +0300)
commit936ddb5398909d9e1255627386bc090ec8943558
tree07c8ab0688edde7b9eb5cd7aec06529da97d8671
parenta0133db5cdc02a8b6588558ebd4ca423c2f8c8bc
platform/x86: x86-android-tablets: use swnode_group instead of manual registering

Replace manually calling software_node_register_node_group() from init()
with the new swnode_group registration mechanism.

Note this also fixes a missing software_node_unregister_node_group()
for lenovo_yt3_swnodes.

Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hansg@kernel.org>
Link: https://patch.msgid.link/20250920200713.20193-14-hansg@kernel.org
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/x86-android-tablets/lenovo.c
drivers/platform/x86/x86-android-tablets/other.c