diff options
author | Jean Delvare <khali@linux-fr.org> | 2010-03-05 22:17:16 +0100 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2010-03-05 22:17:16 +0100 |
commit | 723a0aa0a10f111d7e9e0977d51ac996bf8edbbf (patch) | |
tree | cb5edbb73162ff9de8d029c549b5bd5287cbad83 /security/keys/gc.c | |
parent | 94ac7ee616809d1c919f222037330eca211da9e4 (diff) |
hwmon: (it87) Refactor attributes creation and removal
There is a lot of code redundancy in the creation of the fan and
pwm attributes. Move these attributes to arrays so that the code can
be simplified.
This in turns makes the attributes removal code larger, so move it to
a separate function that can be called in both the standard removal
case and the error path during probing.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'security/keys/gc.c')
0 files changed, 0 insertions, 0 deletions