Skip to content
Commit 723a0aa0 authored by Jean Delvare's avatar Jean Delvare
Browse files

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: default avatarJean Delvare <khali@linux-fr.org>
parent 94ac7ee6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment