]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (pmbus) Improve fan detection
authorGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 30 Jun 2011 13:54:05 +0000 (06:54 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 1 Jul 2011 22:56:06 +0000 (15:56 -0700)
commit9a67ff85fdcd5a505bd1f62c7367f710db0aff61
treefa52ff3ead009c455a0fb41ec4bd8567ecde714c
parent2fd67a49c8455964137e9a122fde734f45b480af
hwmon: (pmbus) Improve fan detection

Some PMBus devices return no error when reading fan speed registers, but don't
really support fans. Strengthen fan detection by also checking if fan
configuration registers exist.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
Cc: stable.kernel.org # 2.6.39
drivers/hwmon/pmbus.c