Skip to content

Commit

Permalink
thermal: tegra_soctherm: fix sign bit of temperature
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Ni authored and Eduardo Valentin committed Mar 8, 2016
1 parent bf82c35 commit 5e25166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/tegra_soctherm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e25166

Please sign in to comment.