]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (pmbus) Improve support for paged fans
authorGuenter Roeck <guenter.roeck@ericsson.com>
Sat, 5 Mar 2011 15:55:10 +0000 (07:55 -0800)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 15 Mar 2011 05:39:09 +0000 (22:39 -0700)
commita34781d3832c3cd5a540a45c2d677db6e8df62fc
treec52ecb7b6255c8c1c06993d5d7dc6414da581e75
parent3caa1263fc4dc0894b5deeb023fc6ef0b29d916e
hwmon: (pmbus) Improve support for paged fans

So far, it seemed like fans would either all be in page 0, or that
there would be one page per fan.

Turns out this was a wrong assumption. There is at least one PMBus
fan controller which supports three pages with four fans each.
Update code to handle this situation.

Reported-by: Greg Schnorr <gschnorr@cisco.com>
Tested-by: Greg Schnorr <gschnorr@cisco.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Greg Schnorr <gschnorr@cisco.com>
drivers/hwmon/pmbus_core.c