drivers/thermal/devfreq_cooling: Extend the devfreq_cooling_device with ops
authorLukasz Luba <lukasz.luba@arm.com>
Mon, 13 Jun 2022 12:43:27 +0000 (13:43 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 28 Jul 2022 15:29:43 +0000 (17:29 +0200)
commit829f416643f9738b0fda9e3f1bf8712113f61a23
tree4c8febf3ae28c988f07c55a9342575ac85ca9296
parent9784d2fbb858ec0dd8d0032293aa06fa736d6ea2
drivers/thermal/devfreq_cooling: Extend the devfreq_cooling_device with ops

Remove unneeded global variable devfreq_cooling_ops which is used only
as a copy pattern. Instead, extend the struct devfreq_cooling_device with
the needed ops structure. This also simplifies the allocation/free code
during the setup/cleanup.

Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://lore.kernel.org/r/20220613124327.30766-5-lukasz.luba@arm.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/devfreq_cooling.c