thermal: Move internal IPA functions
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 2 Apr 2020 14:27:41 +0000 (16:27 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 14 Apr 2020 09:41:12 +0000 (11:41 +0200)
commit33a88af10944edc7fd390000cd6bc9bbde918bc3
tree30481005320efdc391857a372da2a6cfd3505df5
parentc68df440b07f88210c5839d4507b5cbfa35e3df9
thermal: Move internal IPA functions

The exported IPA functions are used by the IPA. It is pointless to
declare the functions in the thermal.h file.

For better self-encapsulation and less impact for the compilation if a
change is made on it. Move the code in the thermal core internal
header file.

As the users depends on THERMAL then it is pointless to have the stub,
remove them.

Take also the opportunity to fix checkpatch warnings/errors when
moving the code around.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Link: https://lore.kernel.org/r/20200402142747.8307-3-daniel.lezcano@linaro.org
drivers/thermal/thermal_core.h
include/linux/thermal.h