diff options
author | Guenter Roeck <linux@roeck-us.net> | 2015-02-24 15:32:40 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2015-03-09 17:59:35 +0100 |
commit | fd044868e8056720b52d41bb61da0fbf7f04fd50 (patch) | |
tree | 4440674d809de22cfa4516570287294e420141d5 /drivers/hwmon/it87.c | |
parent | hwmon: (jc42) Add support for additional IDT temperature sensors (diff) | |
download | linux-fd044868e8056720b52d41bb61da0fbf7f04fd50.tar.xz linux-fd044868e8056720b52d41bb61da0fbf7f04fd50.zip |
hwmon: (it87) Don't configure 16 bit fan counters it not necessary
On IT8728F, IT8771E, and IT8772E, fans counters are always 16 bit
and don't need to be configured for it.
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/it87.c')
-rw-r--r-- | drivers/hwmon/it87.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index ed25e4bab978..e8cbefb9c96d 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c @@ -2463,9 +2463,12 @@ static void it87_init_device(struct platform_device *pdev) } data->has_fan = (data->fan_main_ctrl >> 4) & 0x07; - /* Set tachometers to 16-bit mode if needed, IT8603E (and IT8728F?) - * has it by default */ - if (has_16bit_fans(data) && data->type != it8603) { + /* + * Set tachometers to 16-bit mode if needed. IT8603E, IT8728F, + * IT8771E (guesswork), and IT8772E have it by default. + */ + if (has_16bit_fans(data) && data->type != it8603 && data->type != it8728 + && data->type != it8771 && data->type != it8772) { tmp = it87_read_value(data, IT87_REG_FAN_16BIT); if (~tmp & 0x07 & data->has_fan) { dev_dbg(&pdev->dev, |