summaryrefslogtreecommitdiffstats
path: root/lib/lz4
diff options
context:
space:
mode:
authorEd Swierk <eswierk@skyportsystems.com>2017-07-20 02:47:31 +0200
committerZhang Rui <rui.zhang@intel.com>2017-08-08 10:59:08 +0200
commit23c973f59057929118ff3c80834d7d0335842c63 (patch)
tree81289539a3517589f74b4395b069436a21ad1436 /lib/lz4
parentthermal: int340x_thermal: Constify attribute_group structures. (diff)
downloadlinux-23c973f59057929118ff3c80834d7d0335842c63.tar.xz
linux-23c973f59057929118ff3c80834d7d0335842c63.zip
thermal: intel_pch_thermal: Read large temp values correctly
On all supported platforms, the TS Reading (TSR) field in the Temperature (TEMP) register is 9 bits wide. Values above 0x100 (78 degrees C) are plausible, so don't mask out the topmost bit. And the register itself is 16 bits wide, so use readw() rather than readl(). Signed-off-by: Ed Swierk <eswierk@skyportsystems.com> Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'lib/lz4')
0 files changed, 0 insertions, 0 deletions