]> git.itanic.dy.fi Git - linux-stable/commit
thermal: amlogic: Make amlogic_thermal_disable() return void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 16 Nov 2023 11:26:35 +0000 (12:26 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 2 Jan 2024 08:33:18 +0000 (09:33 +0100)
commit720f8db834a31009d8d11893278ca3f8072a575e
tree8b35851af5f90f1708884a43c57839d691302d96
parent62e79e38b257a59f1e3d8aff801ae8590e2e45b4
thermal: amlogic: Make amlogic_thermal_disable() return void

amlogic_thermal_disable() returned zero unconditionally and
amlogic_thermal_remove() already ignores the return value.

Make it return no value and modify amlogic_thermal_suspend to not check
the value.

This patch introduces no semantic changes, but makes it more obvious for
a human reader that amlogic_thermal_suspend() cannot fail.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20231116112633.668826-2-u.kleine-koenig@pengutronix.de
drivers/thermal/amlogic_thermal.c