From: Guenter Roeck Date: Fri, 27 Apr 2012 01:36:30 +0000 (-0700) Subject: Fix fan count registers for NCT6779 X-Git-Tag: nct6775-v0.9~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=942bacb65545db27899fe37eee5a0e75ef15ea4f;p=groeck-nct6775 Fix fan count registers for NCT6779 Signed-off-by: Guenter Roeck --- diff --git a/nct6775.c b/nct6775.c index ea67d79..76ecaa4 100644 --- a/nct6775.c +++ b/nct6775.c @@ -256,7 +256,7 @@ static const u16 NCT6776_REG_FAN_MIN[] = { 0x63a, 0x63c, 0x63e, 0x640, 0x642}; static const u16 NCT6779_REG_TOLERANCE_H[] = { 0x10c, 0x20c, 0x30c, 0x80c, 0x90c }; -static const u16 NCT6779_REG_FAN[] = { 0x4c0, 0x4c2, 0x4c4, 0x4c6, 0x4c8 }; +static const u16 NCT6779_REG_FAN[] = { 0x4b0, 0x4b2, 0x4b4, 0x4b6, 0x4b8 }; static const u16 NCT6775_REG_TEMP[] = { 0x27, 0x150, 0x250, 0x62b, 0x62c, 0x62d }; @@ -661,7 +661,7 @@ static bool is_word_sized(struct nct6775_data *data, u16 reg) reg == 0x73 || reg == 0x75 || reg == 0x77; case nct6779: return reg == 0x150 || reg == 0x153 || reg == 0x155 || - ((reg & 0xfff0) == 0x4c0 && (reg & 0x000f) < 0x09) || + ((reg & 0xfff0) == 0x4b0 && (reg & 0x000f) < 0x09) || reg == 0x402 || reg == 0x63a || reg == 0x63c || reg == 0x63e || reg == 0x640 || reg == 0x642 ||