Showing the changes to include (1 of 4 files). Show all
Unified · Split
| @@ -661,6 +661,11 @@ struct gov_attr_set { · 660 unmodified lines | ||
| 661 | 661 | /* sysfs ops for cpufreq governors */ |
| 662 | 662 | extern const struct sysfs_ops governor_sysfs_ops; |
| 663 | 663 | |
| 664 | +static inline struct gov_attr_set *to_gov_attr_set(struct kobject *kobj) | |
| 665 | +{ | |
| 666 | + return container_of(kobj, struct gov_attr_set, kobj); | |
| 667 | +} | |
| 668 | + | |
| 664 | 669 | void gov_attr_set_init(struct gov_attr_set *attr_set, struct list_head *list_node); |
| 665 | 670 | void gov_attr_set_get(struct gov_attr_set *attr_set, struct list_head *list_node); |
| 666 | 671 | unsigned int gov_attr_set_put(struct gov_attr_set *attr_set, struct list_head *list_node); |