]> git.baikalelectronics.ru Git - kernel.git/commit
thermal/drivers/tsens: Fix wrong check for tzd in irq handlers
authorAnsuel Smith <ansuelsmth@gmail.com>
Tue, 7 Sep 2021 21:25:42 +0000 (23:25 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 21 Sep 2021 13:17:11 +0000 (15:17 +0200)
commit659bea04b3d816bbeb59811b794f10d02fd9481f
treebd545e475248099c953c4ddb71a412cc1f3c3cb4
parent4e85497362627278dfd1bae0cb9e437d0387d998
thermal/drivers/tsens: Fix wrong check for tzd in irq handlers

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
drivers/thermal/qcom/tsens.c