]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit84e4d1be6aad65dcb99b611dd8886ede36287f5a
tree4c8febf3ae28c988f07c55a9342575ac85ca9296
parent05775f4273dc3f2973b7f9782b3780425964ef89
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