summaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorWei Ni <wni@nvidia.com>2016-03-08 11:19:01 +0800
committerEduardo Valentin <edubezval@gmail.com>2016-03-08 12:41:40 -0800
commit5e25166f32e7364422e2c413b5667713d6fa0f85 (patch)
tree49df59556787f6e5b12bf32fe76e0ecc4c72a926 /drivers/thermal
parentbf82c350e940f5ee3508a94165a99eda81298d5f (diff)
downloadlinux-5e25166f32e7364422e2c413b5667713d6fa0f85.tar.bz2
thermal: tegra_soctherm: fix sign bit of temperature
The sign bit of temperature readback is bit 0, not bit 1. Change to BIT(0) to fix it. Signed-off-by: Wei Ni <wni@nvidia.com> Reviewed-by: Matt Longnecker <mlongnecker@nvidia.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/tegra_soctherm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/tegra_soctherm.c b/drivers/thermal/tegra_soctherm.c
index 74ea5765938b..136975220c92 100644
--- a/drivers/thermal/tegra_soctherm.c
+++ b/drivers/thermal/tegra_soctherm.c
@@ -57,7 +57,7 @@
#define READBACK_VALUE_MASK 0xff00
#define READBACK_VALUE_SHIFT 8
#define READBACK_ADD_HALF BIT(7)
-#define READBACK_NEGATE BIT(1)
+#define READBACK_NEGATE BIT(0)
#define FUSE_TSENSOR8_CALIB 0x180
#define FUSE_SPARE_REALIGNMENT_REG_0 0x1fc