mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +00:00
c36de2e73a
Backport almost 50 commits from upstream Linux to improve thermal drivers for MediaTek SoCs and add new LVTS driver for MT7988. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
From 885b9768ce2a66ed5d250822aed53d5114c895da Mon Sep 17 00:00:00 2001
|
|
From: Yangtao Li <frank.li@vivo.com>
|
|
Date: Tue, 20 Jun 2023 17:07:31 +0800
|
|
Subject: [PATCH 23/42] thermal/drivers/mediatek/lvts_thermal: Remove redundant
|
|
msg in lvts_ctrl_start()
|
|
|
|
The upper-layer devm_thermal_add_hwmon_sysfs() function can directly
|
|
print error information.
|
|
|
|
Signed-off-by: Yangtao Li <frank.li@vivo.com>
|
|
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
|
|
Link: https://lore.kernel.org/r/20230620090732.50025-10-frank.li@vivo.com
|
|
---
|
|
drivers/thermal/mediatek/lvts_thermal.c | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
--- a/drivers/thermal/mediatek/lvts_thermal.c
|
|
+++ b/drivers/thermal/mediatek/lvts_thermal.c
|
|
@@ -998,8 +998,7 @@ static int lvts_ctrl_start(struct device
|
|
return PTR_ERR(tz);
|
|
}
|
|
|
|
- if (devm_thermal_add_hwmon_sysfs(dev, tz))
|
|
- dev_warn(dev, "zone %d: Failed to add hwmon sysfs attributes\n", dt_id);
|
|
+ devm_thermal_add_hwmon_sysfs(dev, tz);
|
|
|
|
/*
|
|
* The thermal zone pointer will be needed in the
|