Skip to content
Commit 2d06a0c9 authored by Takashi Iwai's avatar Takashi Iwai Committed by Corey Minyard
Browse files

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: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent bdf2829c
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