]> git.karo-electronics.de Git - linux-beck.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)
commit954df6763cd84551a565a0c341d3401cf30b9d2d
treec52ecb7b6255c8c1c06993d5d7dc6414da581e75
parent83274c68a34094bbb465589e61f91a3714f8d026
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