commit | 18591add41ec9558ce0e32ef88626c18cc70c686 | [log] [tgz] |
---|---|---|
author | Caesar Wang <wxt@rock-chips.com> | Mon Dec 12 19:05:35 2016 +0800 |
committer | Eduardo Valentin <edubezval@gmail.com> | Tue Dec 13 20:32:08 2016 -0800 |
tree | 52ee4a9ad20ad134b128d7e7d88850f7361a6d60 | |
parent | cadf29dc2a8bcaae83e6e4c3229965de747c8601 [diff] |
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>