msm: thermal: Convert tsens ID to thermal zone ID after boot-up polling
Add support to convert tsens ID to thermal zone ID.
During boot-up, KTM uses tsens ID to get temperature from
tsens driver. After boot-up, KTM works with the thermal sys
framework to register thresholds and thermal sys framework
expects zone ID as input. So during the switch to interrupt
mode convert all tsens ID to Zone ID.
Also, add a function, which can handle zone/tsens ID and get
current temperature.
Change-Id: I685852e8571c0609a32b0ce982ae70d0b59443fd
Signed-off-by:
Ram Chandrasekar <rkumbako@codeaurora.org>
Loading
Please register or sign in to comment