msm: thermal: Use thermal-core framework to get temp on post boot
KTM configures tsens id map at boot and assumes thermal zone id for
tsens is starting with zero. It gets tsens id based on this assumption
from tsens id map and reads temperature using tsens API directly.
But thermal zone id allocation is happening at runtime based on
registration with thermal-core. Use thermal-core framework to get
temperature once after interrupt mode is enabled to avoid mismatch
between tsens id and zone id in a case where other sensor driver
registers with thermal core before tsens driver.
CRs-fixed: 656713
Change-Id: I4a7339f54d1981bc87b3784a20afbca2b2b9d707
Signed-off-by:
Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Loading
Please register or sign in to comment