]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: wmi: Remove wmi_block_list
authorArmin Wolf <W_Armin@gmx.de>
Sat, 26 Oct 2024 19:38:01 +0000 (21:38 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 29 Oct 2024 13:44:19 +0000 (15:44 +0200)
commit049571ce7678221767ec3ee5d522bc3de7d57ed3
tree3e43369c9efb745475a4846fd0bb75976245db44
parent5dcb5ef125907d09806509a9db8c6705041e0026
platform/x86: wmi: Remove wmi_block_list

The wmi_block_list is only used by guid_count() and without proper
protection. It also duplicates some of the WMI bus functionality.

Remove the wmi_block_list and use bus_for_each_dev() instead.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20241026193803.8802-1-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/wmi.c