]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (pmbus) Improve auto-detection of temperature status register
authorGuenter Roeck <guenter.roeck@ericsson.com>
Sun, 3 Jul 2011 20:08:03 +0000 (13:08 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Sun, 10 Jul 2011 15:54:29 +0000 (08:54 -0700)
commit51c7a12c4719525c77d7ad142d4491cfdf2af953
tree73906c8f5f2a381fe085d3660ef333e99c871926
parentbd874851ecb6e540742f37e85ecb131770bbd9f6
hwmon: (pmbus) Improve auto-detection of temperature status register

It is possible that a PMBus device supports the READ_TEMPERATURE2 and/or
READ_TEMPERATURE3 registers but does not support READ_TEMPERATURE1.
Improve temperature status register detection to address this condition.

Reported-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org # 2.6.39+
drivers/hwmon/pmbus.c