RE: [PATCH v1 01/17] thermal/core: Add a thermal zone 'devdata' accessor

DLG Adam Ward
2023-02-20T11:03:41Z

On 19/02/23 14:37, 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.
>
>Provide an accessor to the 'devdata' structure and make use of it in the different drivers.
>No functional changes intended.
>
>Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
>---

>drivers/thermal/da9062-thermal.c | 2 +-

For da9062:

Reviewed-by: Adam Ward <DLG-Adam.Ward.opensource@dm.renesas.com>