hwmon: (w83781d) Request I/O ports individually for probing
commit3659b59c77436fb29437cb57cdd72a26de0ded8c
authorJean Delvare <khali@linux-fr.org>
Fri, 5 Feb 2010 18:58:36 +0000 (5 19:58 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Feb 2010 15:37:45 +0000 (23 07:37 -0800)
tree9568ad1e438e7432a871550cfe20554554a50aba
parent3520341ce308afaf676c961e8432ff5c87d3121b
hwmon: (w83781d) Request I/O ports individually for probing

commit b0bcdd3cd0adb85a7686b396ba50493871b1135c upstream.

Different motherboards have different PNP declarations for
W83781D/W83782D chips. Some declare the whole range of I/O ports (8
ports), some declare only the useful ports (2 ports at offset 5) and
some declare fancy ranges, for example 4 ports at offset 4. To
properly handle all cases, request all ports individually for probing.
After we have determined that we really have a W83781D or W83782D
chip, the useful port range will be requested again, as a single
block.

I did not see a board which needs this yet, but I know of one for lm78
driver and I'd like to keep the logic of these two drivers in sync.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/w83781d.c