]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
hwmon: (w83627ehf) Force initial bank selection
authorJean Delvare <khali@linux-fr.org>
Mon, 5 Nov 2012 20:54:39 +0000 (21:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Nov 2012 21:14:22 +0000 (13:14 -0800)
commitec1f5bf6b3a9f42284371d41a7c998c05c49abcb
treefffd2b6bfb58e0c1aa83dbd205d58da8314c878c
parent356c93d57c40513a321380f274560504a0778c6b
hwmon: (w83627ehf) Force initial bank selection

commit 3300fb4f88688029fff8dfb9ec0734f6e4cba3e7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/w83627ehf.c