[PATCH v5 02/18] thermal/core: Use the thermal zone 'devdata' accessor in thermal located drivers

Linus Walleij linus.walleij at linaro.org
Fri Mar 3 03:55:31 PST 2023


On Wed, Mar 1, 2023 at 9:15 PM Daniel Lezcano <daniel.lezcano at linaro.org> wrote:

> The thermal zone device structure is exposed to the different drivers
> and obviously they access the internals while that should be
> restricted to the core thermal code.
>
> In order to self-encapsulate the thermal core code, we need to prevent
> the drivers accessing directly the thermal zone structure and provide
> accessor functions to deal with.
>
> Use the devdata accessor introduced in the previous patch.
>
> No functional changes intended.
>
> Signed-off-by: Daniel Lezcano <daniel.lezcano at linaro.org>
> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas at ragnatech.se> #R-Car
> Acked-by: Mark Brown <broonie at kernel.org>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com> #MediaTek auxadc and lvts
> Reviewed-by: Balsam CHIHI <bchihi at baylibre.com> #Mediatek lvts
> Reviewed-by: Adam Ward <DLG-Adam.Ward.opensource at dm.renesas.com> #da9062
> Reviewed-by: Baolin Wang <baolin.wang at linux.alibaba.com>  #spread
> Acked-by: Jernej Skrabec <jernej.skrabec at gmail.com> #sun8i_thermal
> Acked-by: Rafael J. Wysocki <rafael.j.wysocki at intel.com>
> Acked-by: Florian Fainelli <f.fainelli at gmail.com> #Broadcom
> Reviewed-by: Dhruva Gole <d-gole at ti.com> # K3 bandgap

Acked-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-amlogic mailing list