]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (w83795) Merge w83795_create_files and w83795_remove_files
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)
commit04fd5f748da7f7f18b857f3249d2b1bd8b833ce2
tree9eb3891644057a011d24c10e8330299b647a490a
parent6ab088ba796d7bb8fb58f99b4d3b801c0e499142
hwmon: (w83795) Merge w83795_create_files and w83795_remove_files

Functions w83795_create_files and w83795_remove_files iterate over
the same set of files, just calling a different function. Merge them
into a single function which takes the action as a parameter. This
saves code, and also ensure that file creation and deletion are in
sync.

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