hwmon: tegra: tsensor: improve counter accuracy
authorDaniel Fu <danifu@nvidia.com>
Wed, 11 Jul 2012 07:11:56 +0000 (15:11 +0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 16 Jul 2012 12:46:28 +0000 (17:46 +0530)
commitd9a0fac17df6ecaf65aaf6059b295b82b81a13a6
treea64e43c60de3f86276241e370e154b24ec1cc5b0
parentb8240c416dd6564c12856072065dc4c99c1df0af
hwmon: tegra: tsensor: improve counter accuracy

When set threshold of tsensor,convert the temp to counter.
The counter convert from temp is with ~1.8C average error.
Improved the accuracy, make it to be ~0.1C.

Bug 1015288

Change-Id: Icab03b559eaeb8846dd1191869afe39c9965f934
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/114904
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
drivers/hwmon/tegra-tsensor.c