thermal: dove: Fix thermal sensor formula
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Fri, 22 Mar 2013 12:23:03 +0000 (09:23 -0300)
committerZhang Rui <rui.zhang@intel.com>
Tue, 26 Mar 2013 14:13:10 +0000 (22:13 +0800)
commit2fd1db8819fbf73b5f74b4b4a205ab7be0957944
tree19fee672d8511004571c6eda8f71bf5a7c764aea
parent696b6075afa97b42b3f59f96809ed586eb691c96
thermal: dove: Fix thermal sensor formula

The currently formula has been taken from the 88AP510 SoC datasheet,
which is not exactly correct. The correct value for the temperature
in Celcius of the sensor present in this SoC is:

  Celsius = (322-reg)/1.3625

Signed-off-by: Lior Amsalem <alior@marvell.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/dove_thermal.c