thermal: rockchip: add the set_trips function
authorCaesar Wang <wxt@rock-chips.com>
Mon, 11 Apr 2016 06:08:26 +0000 (14:08 +0800)
committerCaesar Wang <wxt@rock-chips.com>
Tue, 26 Apr 2016 02:36:17 +0000 (10:36 +0800)
commitcb5fcd393789c32c8c499a1a07ba6a33192916e3
treee6b8f5657c36f5b64e4b1ca9a073757e12fb139d
parentdcdaad18587e3b4506f7eec4dc5003134ec90699
thermal: rockchip: add the set_trips function

Whenever the current temperature is updated, the trip points immediately
below and above the current temperature are found. A sensor driver
callback `set_trips' is then called with the temperatures.
Lastly, The sensor will trigger the hardware high temperature interrupts
to increase the sampleing rate and throttle frequency to limit the temperature
rising When performing passive cooling.

Change-Id: I16b2ab4f8fb85425aab5cd3777ca600bd4cace20
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
drivers/thermal/rockchip_thermal.c