]> git.sur5r.net Git - groeck-k10temp/commitdiff
Read correct HTC register for Family 15h/Model 0x60 and 0x70 CPUs
authorGuenter Roeck <linux@roeck-us.net>
Sun, 29 Apr 2018 15:43:57 +0000 (08:43 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 29 Apr 2018 15:43:57 +0000 (08:43 -0700)
We previously added a new access function for those registers. Fix the code
to use it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
k10temp.c

index 746ca8225713b8697ce8d9efecb5a9375e9a0881..ac30d0e11ca790524cc36a8f021b7fd75b9f22d6 100644 (file)
--- a/k10temp.c
+++ b/k10temp.c
@@ -204,8 +204,7 @@ static ssize_t show_temp_crit(struct device *dev,
        u32 regval;
        int value;
 
-       pci_read_config_dword(data->pdev,
-                             REG_HARDWARE_THERMAL_CONTROL, &regval);
+       data->read_htcreg(data->pdev, &regval);
        value = ((regval >> 16) & 0x7f) * 500 + 52000;
        if (show_hyst)
                value -= ((regval >> 24) & 0xf) * 500;