]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
thermal: nct72: report correct initial temperature
authorRajkumar Kasirajan <rkasirajan@nvidia.com>
Mon, 21 Dec 2015 07:03:20 +0000 (15:03 +0800)
committerWinnie Hsu <whsu@nvidia.com>
Thu, 7 Jan 2016 20:00:30 +0000 (12:00 -0800)
commitc998e4e1b1078d199813505ea7c799e89166ad0a
tree95627ab04b9a4392332a63c63c6af9fcb58b0c11
parentd27860c2e928079e78fdc33b44cd649ff5745c46
thermal: nct72: report correct initial temperature

If NCT is in standby mode, need to initiate one-shot conversion
before reading temperature, otherwise while bootup NCT will report
wrong initial temperature and driver will set wrong temperature
alert limits based on that.

Bug 200161159

Change-Id: I158a73eb692a71c0262496369bcd3bd3d62a40e1
Signed-off-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
(cherry picked from commit 4164770df219bcd37ffa68950882564181a78e8f)
Reviewed-on: http://git-master/r/929885
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
drivers/misc/nct1008.c