linux/drivers/thermal/qcom
Ansuel Smith 2e28f7dd37 thermal/drivers/tsens: Fix wrong check for tzd in irq handlers
[ Upstream commit cf96921876 ]

Some devices can have some thermal sensors disabled from the
factory. The current two irq handler functions check all the sensor by
default and the check if the sensor was actually registered is
wrong. The tzd is actually never set if the registration fails hence
the IS_ERR check is wrong.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210907212543.20220-1-ansuelsmth@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-10-09 14:40:57 +02:00
..
Kconfig
Makefile drivers: thermal: tsens: Merge tsens-common.c into tsens.c 2020-05-22 18:53:04 +02:00
qcom-spmi-temp-alarm.c thermal: qcom-spmi-temp-alarm: Don't suppress negative temp 2020-09-04 11:52:54 +02:00
tsens-8960.c
tsens-v1.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
tsens-v2.c
tsens-v0_1.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
tsens.c thermal/drivers/tsens: Fix wrong check for tzd in irq handlers 2021-10-09 14:40:57 +02:00
tsens.h thermal: qcom: tsens-v0_1: Add support for MSM8939 2020-07-27 10:33:41 +02:00