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)
commit81ae68142a0483b3791cba99eab268859858f508
treefa52ff3ead009c455a0fb41ec4bd8567ecde714c
parent3b33ca41227a54a78446fb0d7a6fdb9862f563db
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