]> git.karo-electronics.de Git - linux-beck.git/commit
thermal: rockchip: handle set_trips without the trip points
authorCaesar Wang <wxt@rock-chips.com>
Mon, 12 Dec 2016 11:05:35 +0000 (19:05 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 14 Dec 2016 04:32:08 +0000 (20:32 -0800)
commit18591add41ec9558ce0e32ef88626c18cc70c686
tree52ee4a9ad20ad134b128d7e7d88850f7361a6d60
parentcadf29dc2a8bcaae83e6e4c3229965de747c8601
thermal: rockchip: handle set_trips without the trip points

In some cases, some sensors didn't need the trip points, the
set_trips will pass {-INT_MAX, INT_MAX} to trigger tsadc alarm in the end,
ignore this case and disable the high temperature interrupt.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/rockchip_thermal.c