commit | 2d06a0c9b3756404e141cafcd62b29ce05238007 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Wed Feb 04 15:36:14 2015 +0100 |
committer | Corey Minyard <cminyard@mvista.com> | Thu Feb 19 20:58:40 2015 -0600 |
tree | cd9e8476ce380098f8799b4c958f630f4f1c4186 | |
parent | bdf2829cb673afc3aeb4f04531546c7605e8d94e [diff] |
ipmi: Use is_visible callback for conditional sysfs entries Instead of manual calls of device_create_file() and device_remove_file(), implement the condition in is_visible callback for the attribute group and put these entries to the group, too. This simplifies the code and avoids the possible races. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Corey Minyard <cminyard@mvista.com>