android_kernel_asus_sm8350/drivers/thermal
Yang Li f570968d01 thermal: intel: Fix unsigned comparison with less than zero
[ Upstream commit e7fcfe67f9f410736b758969477b17ea285e8e6c ]

The return value from the call to intel_tcc_get_tjmax() is int, which can
be a negative error code. However, the return value is being assigned to
an u32 variable 'tj_max', so making 'tj_max' an int.

Eliminate the following warning:
./drivers/thermal/intel/intel_soc_dts_iosf.c:394:5-11: WARNING: Unsigned expression compared with zero: tj_max < 0

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3637
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-11 16:43:54 +01:00
..
broadcom thermal/drivers/broadcom: Fix potential NULL dereference in sr_thermal_probe 2022-06-14 18:11:38 +02:00
intel thermal: intel: Fix unsigned comparison with less than zero 2023-03-11 16:43:54 +01:00
qcom
samsung thermal/drivers/exynos: Fix an error code in exynos_tmu_probe() 2021-09-26 14:07:08 +02:00
st
tegra
ti-soc-thermal
armada_thermal.c
clock_cooling.c
cpu_cooling.c thermal/drivers/cpufreq_cooling: Update cpufreq_state only if state has changed 2021-01-06 14:48:35 +01:00
da9062-thermal.c
db8500_thermal.c
devfreq_cooling.c
dove_thermal.c
fair_share.c thermal/core/fair share: Lock the thermal zone while looping over instances 2021-05-19 10:08:32 +02:00
gov_bang_bang.c
hisi_thermal.c thermal/drivers/hisi: Drop second sensor hi3660 2023-03-11 16:43:43 +01:00
imx_thermal.c
Kconfig
kirkwood_thermal.c
Makefile
max77620_thermal.c
mtk_thermal.c
of-thermal.c thermal: Fix NULL pointer dereferences in of_thermal_ functions 2022-08-11 12:57:50 +02:00
power_allocator.c
qoriq_thermal.c
rcar_gen3_thermal.c thermal/drivers/rcar_gen3_thermal: Fix coefficient calculations 2021-07-20 16:10:53 +02:00
rcar_thermal.c
rockchip_thermal.c
spear_thermal.c
step_wise.c
tango_thermal.c
thermal_core.c thermal: core: Reset previous low and high trip during thermal zone init 2021-12-08 09:01:09 +01:00
thermal_core.h
thermal_helpers.c
thermal_hwmon.c
thermal_hwmon.h
thermal_mmio.c
thermal_sysfs.c thermal: sysfs: Fix cooling_device_stats_setup() error code path 2022-08-25 11:17:22 +02:00
thermal-generic-adc.c
uniphier_thermal.c
user_space.c
zx2967_thermal.c