]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (w83627ehf) don't assume bank 0
authorJean Delvare <khali@linux-fr.org>
Sat, 11 Aug 2007 11:57:05 +0000 (13:57 +0200)
committerMark M. Hoffman <mhoffman@lightlink.com>
Sun, 12 Aug 2007 18:38:31 +0000 (14:38 -0400)
commit9c0eaca2eb7e4afa5dbefc660ed95bd8ebc28e1f
treed017ec09ddb25f14fe69c49a410298228a8e4634
parentce4d712db67f79a23726044476dc4bc130a3947a
hwmon: (w83627ehf) don't assume bank 0

Don't assume that the default bank is 0. For one thing, we don't even
set it to 0 when the driver is loaded, so the initial state might be
different. For another, something (say, the BIOS) might access the chip
and leave with the bank set to something different, so assuming that
the bank value is 0 is not safe.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
drivers/hwmon/w83627ehf.c