hwmon: (f71882fg) Fix f81866a temp/beep setting
authorPeter Hung <hpeter@gmail.com>
Tue, 7 Jul 2015 08:22:37 +0000 (16:22 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 9 Aug 2015 20:44:26 +0000 (13:44 -0700)
commitdcd956fc0b01135e6a00922165e653178d2b177b
tree1aee9b74f46095468072f8f040c992d4a62f5d2e
parent2725fe2b74e264a649af72beaaf6cc2c2e1f3495
hwmon: (f71882fg) Fix f81866a temp/beep setting

The temperature value of Fintek F81866 is the same with
f71882fg. It located with 0x6c + 2*(nr), others located
with 0x6c + 2*(nr+1). We change the rule in f71882fg_probe(),
If type = f71858fg/f8000/f81866a. the temp_start will set to 0,
others are 1.

The F81866 over-temperature beep setting is not the same with
f71882fg too. They are using the same address 63H, but F81866 is
using bit 0/1/2 & 4/5/6, others are using bit 1/2/3 & 5/6/7,
So we copy from fxxxx_temp_beep_attr[] to f81866_temp_beep_attr
and change bit setting.

Signed-off-by: Peter Hung <hpeter+linux_kernel@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/f71882fg.c
This page took 0.028828 seconds and 5 git commands to generate.