platform/x86: dell-sysman: Improve instance detection
authorArmin Wolf <W_Armin@gmx.de>
Sun, 30 Apr 2023 20:31:53 +0000 (22:31 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 9 May 2023 10:07:40 +0000 (12:07 +0200)
commitd7296af803337a0a5b8edb2dd78b23cf1f68d56f
tree0122e4aabfe46f735af59531b7c8ddbd853afc66
parent2a2b13ae50cf70e07b471301ff50299f31d81c1d
platform/x86: dell-sysman: Improve instance detection

The WMI driver core already knows how many WMI object instances
are available, use this information instead of probing the WMI object
manually.

Compile-tested only.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20230430203153.5587-3-W_Armin@gmx.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/dell/dell-wmi-sysman/sysman.c