Re: [PATCH v3 04/20] thermal/core: Use the thermal zone 'devdata' accessor in remaining drivers

From: Damien Le Moal
Date: Sun Feb 26 2023 - 18:01:29 EST


On 2/27/23 07:53, Daniel Lezcano 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@xxxxxxxxxx>
> Acked-by: Mark Brown <broonie@xxxxxxxxxx>
> Reviewed-by: Ido Schimmel <idosch@xxxxxxxxxx> #mlxsw
> Acked-by: Gregory Greenman <gregory.greenman@xxxxxxxxx> #iwlwifi
> Acked-by: Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx> #power_supply
> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>

For the ahci change:

Acked-by: Damien Le Moal <damien.lemoal@xxxxxxxxxxxxxxxxxx>

--
Damien Le Moal
Western Digital Research