]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
thermal: Add some error messages
authorAmit Kucheria <amit.kucheria@linaro.org>
Thu, 11 Jul 2019 20:31:58 +0000 (02:01 +0530)
committerZhang Rui <rui.zhang@intel.com>
Tue, 24 Sep 2019 01:56:08 +0000 (09:56 +0800)
commit67eed44b8a8ae7ca1a1a77c64d2c4815f00e361b
tree64a5983f4c969f3ea40f8da8296d5ffa482c8625
parent1851799e1d2978f68eea5d9dff322e121dcf59c1
thermal: Add some error messages

When registering a thermal zone device, we currently return -EINVAL in
four cases. This makes it a little hard to debug the real cause of the
failure.

Print some error messages to make it easier for developer to figure out
what happened.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/thermal_core.c