]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/thermal/imx_thermal.c
thermal: imx: update to new formula according to NXP AN5215
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 30 Nov 2017 09:17:38 +0000 (10:17 +0100)
committerEduardo Valentin <edubezval@gmail.com>
Mon, 1 Jan 2018 19:49:01 +0000 (11:49 -0800)
commit4e5f61ca11e716c2a46e163bd0286cb8950dc087
tree08e62d9ec5e08e2ea57041dce91b56328b05a476
parent339d7492dbfd76b7ed67366ba7c062c4fb61e560
thermal: imx: update to new formula according to NXP AN5215

According to an application note from 03/2017 there is an updated formula to
calculate the temperature that better matches reality. This is implemented here.

While updating move the magic constants from cpp defines which are far above the
explaining formula to constants in the code just under the explaining comment.

Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/imx_thermal.c