aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/edac.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-03-21 15:55:02 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-06-11 12:23:41 -0400
commitd90c008963ef638cb7ab7d5eb76362b3c2d379bc (patch)
treea2b394bd9ea90b48ec4f5015c2183c3c9f58e14e /include/linux/edac.h
parent5c4cdb5ae72988ef93f72ad6f46be0e4eea5be8d (diff)
edac: Get rid of the old kobj's from the edac mc code
Now that al users for the old kobj raw access are gone, we can get rid of the legacy kobj-based structures and data. Reviewed-by: Aristeu Rozanski <arozansk@redhat.com> Cc: Doug Thompson <norsk5@yahoo.com> Cc: Michal Marek <mmarek@suse.cz> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/linux/edac.h')
-rw-r--r--include/linux/edac.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/include/linux/edac.h b/include/linux/edac.h
index a2b0b6fc002c..8a2da47daa47 100644
--- a/include/linux/edac.h
+++ b/include/linux/edac.h
@@ -457,7 +457,6 @@ struct dimm_info {
457 /* Memory location data */ 457 /* Memory location data */
458 unsigned location[EDAC_MAX_LAYERS]; 458 unsigned location[EDAC_MAX_LAYERS];
459 459
460 struct kobject kobj; /* sysfs kobject for this csrow */
461 struct mem_ctl_info *mci; /* the parent */ 460 struct mem_ctl_info *mci; /* the parent */
462 461
463 u32 grain; /* granularity of reported error in bytes */ 462 u32 grain; /* granularity of reported error in bytes */
@@ -511,34 +510,11 @@ struct csrow_info {
511 510
512 struct mem_ctl_info *mci; /* the parent */ 511 struct mem_ctl_info *mci; /* the parent */
513 512
514 struct kobject kobj; /* sysfs kobject for this csrow */
515
516 /* channel information for this csrow */ 513 /* channel information for this csrow */
517 u32 nr_channels; 514 u32 nr_channels;
518 struct rank_info *channels; 515 struct rank_info *channels;
519}; 516};
520 517
521struct mcidev_sysfs_group {
522 const char *name; /* group name */
523 const struct mcidev_sysfs_attribute *mcidev_attr; /* group attributes */
524};
525
526/* mcidev_sysfs_attribute structure
527 * used for driver sysfs attributes and in mem_ctl_info
528 * sysfs top level entries
529 */
530struct mcidev_sysfs_attribute {
531 /* It should use either attr or grp */
532 struct attribute attr;
533 const struct mcidev_sysfs_group *grp; /* Points to a group of attributes */
534
535 /* Ops for show/store values at the attribute - not used on group */
536 ssize_t (*show)(struct mem_ctl_info *, char *);
537 ssize_t (*store)(struct mem_ctl_info *, const char *, size_t);
538
539 void *priv;
540};
541
542/* 518/*
543 * struct errcount_attribute - used to store the several error counts 519 * struct errcount_attribute - used to store the several error counts
544 */ 520 */
@@ -641,12 +617,6 @@ struct mem_ctl_info {
641 617
642 struct completion complete; 618 struct completion complete;
643 619
644 /* edac sysfs device control */
645 struct kobject edac_mci_kobj;
646
647 /* list for all grp instances within a mc */
648 struct list_head grp_kobj_list;
649
650 /* Additional top controller level attributes, but specified 620 /* Additional top controller level attributes, but specified
651 * by the low level driver. 621 * by the low level driver.
652 * 622 *