hwmon: (acpi_power_meter) Fix update the power trip points on failure
authorHuisong Li <lihuisong@huawei.com>
Thu, 9 Jan 2025 08:17:08 +0000 (16:17 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 9 Jan 2025 20:44:56 +0000 (12:44 -0800)
commit02f1a5911550bd6b39526d18282b10d441e04ed1
tree5a77da9777b2579a006b8c32243b2c21379d5c59
parent7532e68f5d8f05353765d7585a791a14985d68b7
hwmon: (acpi_power_meter) Fix update the power trip points on failure

The power trip points maintained in local should not be updated when '_PTP'
method fails to evaluate.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Link: https://lore.kernel.org/r/20250109081708.27366-3-lihuisong@huawei.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/acpi_power_meter.c