File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99#include "cpufreq_governor.h"
1010
11- static inline struct gov_attr_set * to_gov_attr_set (struct kobject * kobj )
12- {
13- return container_of (kobj , struct gov_attr_set , kobj );
14- }
15-
1611static inline struct governor_attr * to_gov_attr (struct attribute * attr )
1712{
1813 return container_of (attr , struct governor_attr , attr );
Original file line number Diff line number Diff line change @@ -658,6 +658,11 @@ struct gov_attr_set {
658658/* sysfs ops for cpufreq governors */
659659extern const struct sysfs_ops governor_sysfs_ops ;
660660
661+ static inline struct gov_attr_set * to_gov_attr_set (struct kobject * kobj )
662+ {
663+ return container_of (kobj , struct gov_attr_set , kobj );
664+ }
665+
661666void gov_attr_set_init (struct gov_attr_set * attr_set , struct list_head * list_node );
662667void gov_attr_set_get (struct gov_attr_set * attr_set , struct list_head * list_node );
663668unsigned int gov_attr_set_put (struct gov_attr_set * attr_set , struct list_head * list_node );
You can’t perform that action at this time.
0 commit comments