commit | 6f3dcde9c6dcbbe781a2a98900552bcb989733e3 | [log] [tgz] |
---|---|---|
author | Jean Delvare <khali@linux-fr.org> | Thu Oct 28 20:31:45 2010 +0200 |
committer | Jean Delvare <khali@endymion.delvare> | Thu Oct 28 20:31:45 2010 +0200 |
tree | 9eb3891644057a011d24c10e8330299b647a490a | |
parent | 892514a6372d49ffe9749fb86cc587b4dce90733 [diff] |
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>