thermal: rockhip: fix setting thermal shutdown polarity
authorDmitry Torokhov <dtor@chromium.org>
Fri, 7 Aug 2015 21:00:52 +0000 (14:00 -0700)
committerEduardo Valentin <edubezval@gmail.com>
Fri, 30 Oct 2015 18:12:07 +0000 (11:12 -0700)
commit452e01b3dbb54f743a200c722981ced169888860
tree770e0181ea6776dfe88ae1c6885d2f634ddc98c5
parentd9a241cbbdca9ead3322c073dbb9dbf61ac76ef0
thermal: rockhip: fix setting thermal shutdown polarity

When requested thermal shutdown signal polarity is low we need to make
sure that the bit representing high level of signal is reset, and not
set all other bits in that register.

Also rename TSADCV2_INT_PD_CLEAR to TSADCV2_INT_PD_CLEAR_MASK to better
reflect its nature.

Acked-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Dmitry Torokhov <dtor@chromium.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/rockchip_thermal.c