]> Gentwo Git Trees - linux/.git/commit
platform/x86: hp-bioscfg: Use wmi_instance_count()
authorArmin Wolf <W_Armin@gmx.de>
Sun, 16 Feb 2025 19:32:47 +0000 (20:32 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 24 Feb 2025 11:19:18 +0000 (13:19 +0200)
commit0fcc3162e3fbe4ca9347b2f42313dbf077207bb1
tree7c2aea2fb98842a52fe21aec3860b1f879438f5d
parent126a53a94a3fb3171d35f3c87820aafbafa08430
platform/x86: hp-bioscfg: Use wmi_instance_count()

The WMI core already knows the instance count of a WMI guid.
Use this information instead of querying all possible instances
which is slow and might be unreliable.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20250216193251.866125-5-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/hp/hp-bioscfg/bioscfg.c