hwmon: (k10temp) Add temperature offset for Ryzen 2700X
authorGuenter Roeck <linux@roeck-us.net>
Tue, 24 Apr 2018 13:55:55 +0000 (06:55 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 25 Apr 2018 12:23:20 +0000 (05:23 -0700)
commit1b59788979acd230b9627276c76f6e6ba2c4709c
tree2a4a9375e4dad059e8110dde763d3198ac1aa08f
parentdbac00f0cf634120d77edee10d25e3f6899d7636
hwmon: (k10temp) Add temperature offset for Ryzen 2700X

Ryzen 2700X has a temperature offset of 10 degrees C. If bit 19 of the
Temperature Control register is set, there is an additional offset of
49 degrees C. Take this into account as well.

Cc: stable@vger.kernel.org # v4.16+
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/k10temp.c