<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/include/linux/thermal.h, branch linux-5.8.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-5.8.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-5.8.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2020-04-14T09:41:12+00:00</updated>
<entry>
<title>thermal: Remove thermal_zone_device_update() stub</title>
<updated>2020-04-14T09:41:12+00:00</updated>
<author>
<name>Daniel Lezcano</name>
<email>daniel.lezcano@linaro.org</email>
</author>
<published>2020-04-02T14:27:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0145f67866b71e8c1da3c1d9412623db7ba8a0c8'/>
<id>urn:sha1:0145f67866b71e8c1da3c1d9412623db7ba8a0c8</id>
<content type='text'>
All users of the function depends on THERMAL, no stub is
needed. Remove it.

Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Reviewed-by: Amit Kucheria &lt;amit.kucheria@linaro.org&gt;
Acked-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Link: https://lore.kernel.org/r/20200402142747.8307-9-daniel.lezcano@linaro.org
</content>
</entry>
<entry>
<title>thermal: Remove stubs for thermal_zone_[un]bind_cooling_device</title>
<updated>2020-04-14T09:41:12+00:00</updated>
<author>
<name>Daniel Lezcano</name>
<email>daniel.lezcano@linaro.org</email>
</author>
<published>2020-04-02T14:27:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=708418500644c248d6f266e4df0bf43ce53bf746'/>
<id>urn:sha1:708418500644c248d6f266e4df0bf43ce53bf746</id>
<content type='text'>
All callers of the functions depends on THERMAL, it is pointless to
define stubs. Remove them.

Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Reviewed-by: Amit Kucheria &lt;amit.kucheria@linaro.org&gt;
Acked-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Link: https://lore.kernel.org/r/20200402142747.8307-8-daniel.lezcano@linaro.org
</content>
</entry>
<entry>
<title>thermal: Change IS_ENABLED to IFDEF in the header file</title>
<updated>2020-04-14T09:41:12+00:00</updated>
<author>
<name>Daniel Lezcano</name>
<email>daniel.lezcano@linaro.org</email>
</author>
<published>2020-04-02T14:27:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=60518260cab21e749704baa5246ff13f7559fa91'/>
<id>urn:sha1:60518260cab21e749704baa5246ff13f7559fa91</id>
<content type='text'>
The thermal framework can not be compiled as a module. The IS_ENABLED
macro is useless here and can be replaced by an ifdef.

Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Reviewed-by: Amit Kucheria &lt;amit.kucheria@linaro.org&gt;
Acked-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Link: https://lore.kernel.org/r/20200402142747.8307-7-daniel.lezcano@linaro.org
</content>
</entry>
<entry>
<title>thermal: Move get_thermal_instance to the internal header</title>
<updated>2020-04-14T09:41:12+00:00</updated>
<author>
<name>Daniel Lezcano</name>
<email>daniel.lezcano@linaro.org</email>
</author>
<published>2020-04-02T14:27:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=06f1041f5023c00a54f63c269b997c61d1b3b739'/>
<id>urn:sha1:06f1041f5023c00a54f63c269b997c61d1b3b739</id>
<content type='text'>
The function is not used any place other than the thermal
directory. It does not make sense to export its definition in the
global header as there is no use of it.

Move the definition to the internal header and allow better
self-encapsulation.

Take the opportunity to add the parameter names to make checkpatch
happy and remove the pointless stubs.

Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Reviewed-by: Amit Kucheria &lt;amit.kucheria@linaro.org&gt;
Acked-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Link: https://lore.kernel.org/r/20200402142747.8307-6-daniel.lezcano@linaro.org
</content>
</entry>
<entry>
<title>thermal: Move get_tz_trend to the internal header</title>
<updated>2020-04-14T09:41:12+00:00</updated>
<author>
<name>Daniel Lezcano</name>
<email>daniel.lezcano@linaro.org</email>
</author>
<published>2020-04-02T14:27:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f0129c231772a85a726b233756cdc58ea42a9d84'/>
<id>urn:sha1:f0129c231772a85a726b233756cdc58ea42a9d84</id>
<content type='text'>
The function is not used any place other than the thermal
directory. It does not make sense to export its definition in the
global header as there is no use of it.

Move the definition to the internal header and allow better
self-encapsulation.

Take the opportunity to add the parameter names to make checkpatch
happy and remove the pointless stubs.

Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Reviewed-by: Amit Kucheria &lt;amit.kucheria@linaro.org&gt;
Acked-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Link: https://lore.kernel.org/r/20200402142747.8307-5-daniel.lezcano@linaro.org
</content>
</entry>
<entry>
<title>thermal: Move trip point structure definition to private header</title>
<updated>2020-04-14T09:41:12+00:00</updated>
<author>
<name>Daniel Lezcano</name>
<email>daniel.lezcano@linaro.org</email>
</author>
<published>2020-04-02T14:27:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2e7700dc336dde93cdc9394d10ccd79593fff214'/>
<id>urn:sha1:2e7700dc336dde93cdc9394d10ccd79593fff214</id>
<content type='text'>
The struct thermal_trip is only used by the thermal internals, it is
pointless to export the definition in the global header.

Move the structure to the thermal_core.h internal header.

Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Reviewed-by: Amit Kucheria &lt;amit.kucheria@linaro.org&gt;
Acked-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Link: https://lore.kernel.org/r/20200402142747.8307-4-daniel.lezcano@linaro.org
</content>
</entry>
<entry>
<title>thermal: Move internal IPA functions</title>
<updated>2020-04-14T09:41:12+00:00</updated>
<author>
<name>Daniel Lezcano</name>
<email>daniel.lezcano@linaro.org</email>
</author>
<published>2020-04-02T14:27:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=33a88af10944edc7fd390000cd6bc9bbde918bc3'/>
<id>urn:sha1:33a88af10944edc7fd390000cd6bc9bbde918bc3</id>
<content type='text'>
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 &lt;daniel.lezcano@linaro.org&gt;
Reviewed-by: Amit Kucheria &lt;amit.kucheria@linaro.org&gt;
Acked-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Link: https://lore.kernel.org/r/20200402142747.8307-3-daniel.lezcano@linaro.org
</content>
</entry>
<entry>
<title>thermal: Move struct thermal_attr to the private header</title>
<updated>2020-04-14T09:41:12+00:00</updated>
<author>
<name>Daniel Lezcano</name>
<email>daniel.lezcano@linaro.org</email>
</author>
<published>2020-04-02T14:27:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c68df440b07f88210c5839d4507b5cbfa35e3df9'/>
<id>urn:sha1:c68df440b07f88210c5839d4507b5cbfa35e3df9</id>
<content type='text'>
The structure belongs to the thermal core internals but it is exported
in the include/linux/thermal.h

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

Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Reviewed-by: Amit Kucheria &lt;amit.kucheria@linaro.org&gt;
Acked-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Link: https://lore.kernel.org/r/20200402142747.8307-2-daniel.lezcano@linaro.org
</content>
</entry>
<entry>
<title>thermal: Move default governor config option to the internal header</title>
<updated>2020-04-14T09:41:12+00:00</updated>
<author>
<name>Daniel Lezcano</name>
<email>daniel.lezcano@linaro.org</email>
</author>
<published>2020-04-02T14:27:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=8097db407a08f33236b6fa6ba8b62d669321c720'/>
<id>urn:sha1:8097db407a08f33236b6fa6ba8b62d669321c720</id>
<content type='text'>
The default governor set at compilation time is a thermal internal
business, no need to export to the global thermal header.

Move the config options to the internal header.

Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Reviewed-by: Amit Kucheria &lt;amit.kucheria@linaro.org&gt;
Acked-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Link: https://lore.kernel.org/r/20200402142747.8307-1-daniel.lezcano@linaro.org
</content>
</entry>
<entry>
<title>thermal: core: Make thermal_zone_set_trips private</title>
<updated>2020-04-14T09:41:12+00:00</updated>
<author>
<name>Daniel Lezcano</name>
<email>daniel.lezcano@linaro.org</email>
</author>
<published>2020-03-31T16:54:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=bceb5646a15dad49ceb29ec16b8acc10075d0627'/>
<id>urn:sha1:bceb5646a15dad49ceb29ec16b8acc10075d0627</id>
<content type='text'>
The function thermal_zone_set_trips() is used by the thermal core code
in order to update the next trip points, there are no other users.

Move the function definition in the thermal_core.h, remove the
EXPORT_SYMBOL_GPL and document the function.

Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Reviewed-by: Lukasz Luba &lt;lukasz.luba@arm.com&gt;
Reviewed-by: Amit Kucheria &lt;amit.kucheria@linaro.org&gt;
Link: https://lore.kernel.org/r/20200331165449.30355-1-daniel.lezcano@linaro.org
</content>
</entry>
</feed>
