drivers: thermal: Evaluate based on trip temperature

With virtual sensors, temperature reads by different zones at different
time can be different and hence can result in different set of
thresholds. This can lead to a case where we can get interrupt for the
same temperature back to back if the temperature is fluctuating.

To avoid this, allow sensor drivers to read the temperature and provide
that information along when notifying for trip notification. Thermal
framework will now make sure all the thermal zones will use the same
temperature in all thermal zones to evaluate.

Change-Id: I10861be54f0948081a83a1e839d8f9401929c61b
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
4 files changed