]> 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)
committermobile promotions <svcmobile_promotions@nvidia.com>
Wed, 20 Jan 2016 23:48:08 +0000 (15:48 -0800)
commit0f187b17701038380ff1446aac3b334c0ab42f5a
tree0cecee9a509c450674b4112316a6e8567e10f4dc
parentf9f2d7d55cf2022eb4fedd36685b3427952c5460
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/929897
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
drivers/misc/nct1008.c