misc: nct1008: adjust reported temp via offset table
authorDiwakar Tundlam <dtundlam@nvidia.com>
Thu, 25 Jul 2013 01:33:46 +0000 (18:33 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:39:07 +0000 (13:39 -0700)
commitfeef3296a7896e99340e300ecd5d6ae8b2b91541
treede207c7cca2931b0cb14fc4596cb866f12eacd72
parentcf2cbd5305115c2c7418e8cc5bc32160d673eb54
misc: nct1008: adjust reported temp via offset table

Add support to specify a table of temperature dependent offsets
that will be added to the measured temperature before reporting
it to the thermal zone. Actual temperature is still reported in
'temperature'.  We only adjust the temperature reported to
thermal zone via the xxx_get_temp() API.

This is done only for external sensors as requested.

Bug 1330895

Change-Id: I419aa62b2a69f9a96b1fab401fc53e791386b300
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/257044
drivers/misc/nct1008.c