]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (w83627ehf) Force initial bank selection
authorJean Delvare <khali@linux-fr.org>
Tue, 30 Oct 2012 23:17:38 +0000 (10:17 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 30 Oct 2012 23:17:38 +0000 (10:17 +1100)
commit84f67e367a1c25a9af969ce774982df1a7970a53
tree1aa347c64a5baa13339db8cfbdf02fd86fc8f802
parent35fd3dc58da675d659513384221349ef90749a01
hwmon: (w83627ehf) Force initial bank selection

Don't assume bank 0 is selected at device probe time. This may not be
the case. Force bank selection at first register access to guarantee
that we read the right registers upon driver loading.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Cc: stable@vger.kernel.org
drivers/hwmon/w83627ehf.c