]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (lm78) Request I/O ports individually for probing
authorJean Delvare <khali@linux-fr.org>
Thu, 1 Apr 2010 22:55:48 +0000 (15:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 22:55:48 +0000 (15:55 -0700)
commite4f176e9356dcd7155d91456b4d8e2fe1b85edbe
tree713ec70f276acf83581826c5b87d7b184d11a422
parent04bd6922cb0f89cd3d2e6ac86792ef59d77c2b9f
hwmon: (lm78) Request I/O ports individually for probing

commit 197027e6ef830d60e10f76efc8d12bf3b6c35db5 upstream.

Different motherboards have different PNP declarations for LM78/LM79
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 an LM78 or LM79 chip, the useful port
range will be requested again, as a single block.

This fixes the driver on the Olivetti M3000 DT 540, at least.

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