hwmon: (hp-wmi-sensors) Use the WMI bus API when accessing sensors
authorArmin Wolf <W_Armin@gmx.de>
Sun, 16 Feb 2025 19:32:44 +0000 (20:32 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 24 Feb 2025 11:19:12 +0000 (13:19 +0200)
commit27cc2914e495d314d19c7c1f74687bb28bc292e8
tree13c07ba3595ce533c9916606cc2bd0d3cb315d81
parentc86e269c4da6dca2beaf99bdc6fd9f0a9f69035f
hwmon: (hp-wmi-sensors) Use the WMI bus API when accessing sensors

Since the driver already binds to HP_WMI_NUMERIC_SENSOR_GUID, using
wmidev_block_query() allows for faster sensor access.

Acked-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: James Seo <james@equiv.tech>
Reviewed-by: James Seo <james@equiv.tech>
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20250216193251.866125-2-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/hwmon/hp-wmi-sensors.c