summaryrefslogtreecommitdiff
path: root/drivers/hwmon/dell-smm-hwmon.c
diff options
context:
space:
mode:
authorJames Seo <james@equiv.tech>2023-11-23 08:49:19 +0300
committerGuenter Roeck <linux@roeck-us.net>2023-12-11 17:21:01 +0300
commitc9ba592580947b81f33f514320aeef02ddc001fd (patch)
treefda8252579eaf2a104366ba7173ae1c75fea332e /drivers/hwmon/dell-smm-hwmon.c
parentf07f9d2467f4a298d24e186ddee6f69724903067 (diff)
downloadlinux-c9ba592580947b81f33f514320aeef02ddc001fd.tar.xz
hwmon: (hp-wmi-sensors) Fix failure to load on EliteDesk 800 G6
The EliteDesk 800 G6 stores a raw WMI string within the ACPI object in its BIOS corresponding to one instance of HPBIOS_PlatformEvents.Name. This is evidently a valid way of representing a WMI data item as far as the Microsoft ACPI-WMI mapper is concerned, but is preventing the driver from loading. This seems quite rare, but add support for such strings. Treating this as a quirk pretty much means adding that support anyway. Also clean up an oversight in update_numeric_sensor_from_wobj() in which the result of hp_wmi_strdup() was being used without error checking. Reported-by: Lukasz Stelmach <l.stelmach@samsung.com> Closes: https://lore.kernel.org/linux-hwmon/7850a0bd-60e7-88f8-1d6c-0bb0e3234fdc@roeck-us.net/ Tested-by: Lukasz Stelmach <l.stelmach@samsung.com> Signed-off-by: James Seo <james@equiv.tech> Link: https://lore.kernel.org/r/20231123054918.157098-1-james@equiv.tech Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/dell-smm-hwmon.c')
0 files changed, 0 insertions, 0 deletions