]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC: Allow to pass driver-specific attribute groups
authorTakashi Iwai <tiwai@suse.de>
Wed, 4 Feb 2015 10:48:52 +0000 (11:48 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 23 Feb 2015 12:07:41 +0000 (13:07 +0100)
commitb904b4059da116d00f38a408e5ef9c9a512686b9
tree3a94888ddd239d04aab3ff1458cd3f3f4afa08f3
parent1fe5953b497d3f1c49602584cf11a616c106e2f0
EDAC: Allow to pass driver-specific attribute groups

Add edac_mc_add_mc_with_groups() for initializing the mem_ctl_info
object with the optional attribute groups.  This allows drivers to
pass additional sysfs entries without manual (and racy)
device_create_file() and co calls.

edac_mc_add_mc() is kept as is, just calling edac_mc_add_with_groups()
with NULL groups.

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