]> git.baikalelectronics.ru Git - kernel.git/commit
i7core_edac: Properly mark const static vars as such
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 10 Aug 2010 21:57:01 +0000 (18:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 24 Oct 2010 13:20:14 +0000 (11:20 -0200)
commit4959631675ca21f029c8784287c2eb852b1b23bc
tree34c00383b8e6beee2651b6b5614875d503cd7939
parent2aba0f604a1991461c0160cf507820f29ed1bd77
i7core_edac: Properly mark const static vars as such

There are two groups of sysfs attributes: one for rdimm and another
for udimm. Instead of changing dynamically the unique static struct
for handling udimm's, declare two vars and make them constant.

This avoids the risk of having two or more memory controllers, each
needing a different set of attributes.

While here, use const on all places where it is applicable.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
edac_core: use const for constant sysfs arguments

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/edac_core.h
drivers/edac/edac_mc_sysfs.c
drivers/edac/i7core_edac.c