]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6424848d1a8669a87a6e5ce55046e721a335199a
tree2f7052c24378f144dc940f1095b3c408a61d1ba1
parentf04da22e5c2db5c4e2f2608ec17698b2ac6dfdc9
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