summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/user_space.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-07-17 22:13:41 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2019-07-17 22:13:41 +0200
commitaac09ce27556f79f20a860ae89d790d7bfbf1747 (patch)
tree205fa380d16ac1edfb5a971873f2e85e8d922b17 /drivers/thermal/user_space.c
parentMerge tag 'gpio-v5.3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linu... (diff)
parentdrivers: thermal: processor_thermal_device: Fix build warning (diff)
downloadlinux-aac09ce27556f79f20a860ae89d790d7bfbf1747.tar.xz
linux-aac09ce27556f79f20a860ae89d790d7bfbf1747.zip
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
Pull thermal management updates from Zhang Rui: - Convert thermal documents to ReST (Mauro Carvalho Chehab) - Fix a cyclic depedency in between thermal core and governors (Daniel Lezcano) - Fix processor_thermal_device driver to re-evaluate power limits after resume (Srinivas Pandruvada, Zhang Rui) * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux: drivers: thermal: processor_thermal_device: Fix build warning docs: thermal: convert to ReST thermal/drivers/core: Use governor table to initialize thermal/drivers/core: Add init section table for self-encapsulation drivers: thermal: processor_thermal: Read PPCC on resume
Diffstat (limited to 'drivers/thermal/user_space.c')
-rw-r--r--drivers/thermal/user_space.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/thermal/user_space.c b/drivers/thermal/user_space.c
index d62a99fc60a6..962873fd9242 100644
--- a/drivers/thermal/user_space.c
+++ b/drivers/thermal/user_space.c
@@ -44,14 +44,4 @@ static struct thermal_governor thermal_gov_user_space = {
.name = "user_space",
.throttle = notify_user_space,
};
-
-int thermal_gov_user_space_register(void)
-{
- return thermal_register_governor(&thermal_gov_user_space);
-}
-
-void thermal_gov_user_space_unregister(void)
-{
- thermal_unregister_governor(&thermal_gov_user_space);
-}
-
+THERMAL_GOVERNOR_DECLARE(thermal_gov_user_space);