MLK-14291 thermal: imx: fix setting passive trip temp
authorIrina Tirdea <irina.tirdea@nxp.com>
Tue, 28 Feb 2017 15:51:05 +0000 (17:51 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:10:48 +0000 (15:10 -0500)
commite25454ef97d8beabbb18104a54f7ee2be2dd4cf9
tree2afb9e49d2e126456e29a74e56efb0ba11d38603
parent650153256f18ada9cf0130212e55c5d871694085
MLK-14291 thermal: imx: fix setting passive trip temp

When setting passive temperature trip point, it is not
allowed to set a higher value than the default.

Currently the driver compares the new temperature to set
with a constant (0). This comparison wil always be true
(temp to set higher than 0) and the driver will return
-EINVAL. This is a leftover from rebasing the commit fc4fcd689419
("MLK-11705 thermal: imx: make the critical trip temp changable for test").

Fix the comparison by using the actual default passive
temperature value instead of the wrong constant.

Signed-off-by: Irina Tirdea <irina.tirdea@nxp.com>
drivers/thermal/imx_thermal.c