]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC: Use static attribute groups for managing sysfs entries
authorTakashi Iwai <tiwai@suse.de>
Wed, 4 Feb 2015 10:48:51 +0000 (11:48 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 23 Feb 2015 12:06:58 +0000 (13:06 +0100)
commit1fe5953b497d3f1c49602584cf11a616c106e2f0
tree7bee92adb802c5681d740f314f3e52ac95df7f09
parent79ae39a05ad2b2045e9acb0cadc8e375a7f63cb6
EDAC: Use static attribute groups for managing sysfs entries

Instead of manual calls of device_create_file() and
device_remove_file(), use static attribute groups with proper
is_visible callbacks for managing the sysfs entries.

This simplifies the code a lot and avoids the possible races.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: http://lkml.kernel.org/r/1423046938-18111-2-git-send-email-tiwai@suse.de
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/edac_mc_sysfs.c