aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/edac_mc_sysfs.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-08-10 17:57:01 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-24 09:20:14 -0400
commit1288c18f48d9bf373dbed6b688cde36dc970b1ed (patch)
tree34c00383b8e6beee2651b6b5614875d503cd7939 /drivers/edac/edac_mc_sysfs.c
parent18c29002f95bc2f67c1c78d7fc7932843aa66657 (diff)
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>
Diffstat (limited to 'drivers/edac/edac_mc_sysfs.c')
-rw-r--r--drivers/edac/edac_mc_sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c
index 8aad94d10c0c..aacffe5d0f33 100644
--- a/drivers/edac/edac_mc_sysfs.c
+++ b/drivers/edac/edac_mc_sysfs.c
@@ -783,7 +783,7 @@ static struct kobj_type ktype_inst_grp = {
783 * object tree. 783 * object tree.
784 */ 784 */
785static int edac_create_mci_instance_attributes(struct mem_ctl_info *mci, 785static int edac_create_mci_instance_attributes(struct mem_ctl_info *mci,
786 struct mcidev_sysfs_attribute *sysfs_attrib, 786 const struct mcidev_sysfs_attribute *sysfs_attrib,
787 struct kobject *kobj) 787 struct kobject *kobj)
788{ 788{
789 int err; 789 int err;
@@ -842,7 +842,7 @@ static int edac_create_mci_instance_attributes(struct mem_ctl_info *mci,
842 * directory of this mci instance. 842 * directory of this mci instance.
843 */ 843 */
844static void edac_remove_mci_instance_attributes(struct mem_ctl_info *mci, 844static void edac_remove_mci_instance_attributes(struct mem_ctl_info *mci,
845 struct mcidev_sysfs_attribute *sysfs_attrib, 845 const struct mcidev_sysfs_attribute *sysfs_attrib,
846 struct kobject *kobj, int count) 846 struct kobject *kobj, int count)
847{ 847{
848 struct mcidev_sysfs_group_kobj *grp_kobj, *tmp; 848 struct mcidev_sysfs_group_kobj *grp_kobj, *tmp;