]> git.sur5r.net Git - groeck-it87/commitdiff
Fix up support for IT8625E 27/head
authorJustin Maggard <jmaggard@netgear.com>
Thu, 11 May 2017 20:25:20 +0000 (13:25 -0700)
committerJustin Maggard <jmaggard@netgear.com>
Thu, 11 May 2017 20:39:42 +0000 (13:39 -0700)
Add missing scaling feature and fix broken temp type detection on temp
1-3 sensors.

it87.c

diff --git a/it87.c b/it87.c
index e5328aa7e722ae33b8d6bfe483b4a94d85043cdd..a489cab422d42bcd7f4ece4ed9a9f01b018f63bb 100644 (file)
--- a/it87.c
+++ b/it87.c
@@ -599,7 +599,7 @@ static const struct it87_devices it87_devices[] = {
                .features = FEAT_NEWER_AUTOPWM | FEAT_16BIT_FANS
                  | FEAT_TEMP_OFFSET | FEAT_AVCC3 | FEAT_NEW_TEMPMAP
                  | FEAT_11MV_ADC | FEAT_IN7_INTERNAL | FEAT_SIX_FANS
-                 | FEAT_SIX_PWM | FEAT_BANK_SEL,
+                 | FEAT_SIX_PWM | FEAT_BANK_SEL | FEAT_SCALING,
                .num_temp_limit = 6,
        },
        [it8628] = {
@@ -1295,6 +1295,8 @@ static int get_temp_type(struct it87_data *data, int index)
                        }
                        break;
                case it8625:
+                       if (index < 3)
+                               break;
                case it8655:
                case it8665:
                        if (src1 < 3) {