hwmon: (w83795) Refactor bank selection
authorJean Delvare <khali@linux-fr.org>
Thu, 28 Oct 2010 18:31:45 +0000 (20:31 +0200)
committerJean Delvare <khali@endymion.delvare>
Thu, 28 Oct 2010 18:31:45 +0000 (20:31 +0200)
commitb2469f422f9ee2054359c4ec609c3bdb1f2d52f5
tree2f7052c24378f144dc940f1095b3c408a61d1ba1
parent093d1a4794cc23dd221019eb1cdf42b16b48abcc
hwmon: (w83795) Refactor bank selection

Move the bank selection code to a separate function, to avoid
duplicating it in read and write functions. Improve error reporting
on register access error.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/w83795.c