Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 63828977 authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

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: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent d411be83
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment