]> asedeno.scripts.mit.edu Git - linux.git/commit
thermal: imx: improve comments describing algorithm for temp calculation
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 30 Nov 2017 09:17:36 +0000 (10:17 +0100)
committerEduardo Valentin <edubezval@gmail.com>
Mon, 1 Jan 2018 19:45:55 +0000 (11:45 -0800)
commitc5bbdb4ba30977a30f485e66c8af9b4c44f3798e
treed7bdf167a1b7267b4507d05ec9416ec4185b631f
parente4bb2240d4db6188f2e88610a68bda12e2bc98e1
thermal: imx: improve comments describing algorithm for temp calculation

The description of the implemented algorithm is hardly understandable
without having the right application note side-by-side to the code.

Fix this by using shorter and more intuitive variable names, describe
their meaning and transform a single formula instead of first talking about
slope and then about "milli_Tmeas".

There are no code changes.

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