summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2022-01-23 20:45:06 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-02-04 19:22:34 +0100
commitae26508651272695a3ab353f75ab9a8daf3da324 (patch)
treefa18334b2f77740d5ec54d6aff8d0de4ff2de2a7 /drivers/cpufreq
parent26291c54e111ff6ba87a164d85d4a4e134b7315c (diff)
downloadlinux-ae26508651272695a3ab353f75ab9a8daf3da324.tar.bz2
cpufreq: Move to_gov_attr_set() to cpufreq.h
So it can be reused by other codes. Signed-off-by: Kevin Hao <haokexin@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/cpufreq_governor_attr_set.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/cpufreq/cpufreq_governor_attr_set.c b/drivers/cpufreq/cpufreq_governor_attr_set.c
index a6f365b9cc1a..771770ea0ed0 100644
--- a/drivers/cpufreq/cpufreq_governor_attr_set.c
+++ b/drivers/cpufreq/cpufreq_governor_attr_set.c
@@ -8,11 +8,6 @@
#include "cpufreq_governor.h"
-static inline struct gov_attr_set *to_gov_attr_set(struct kobject *kobj)
-{
- return container_of(kobj, struct gov_attr_set, kobj);
-}
-
static inline struct governor_attr *to_gov_attr(struct attribute *attr)
{
return container_of(attr, struct governor_attr, attr);