[PATCH v1 01/17] thermal/core: Add a thermal zone 'devdata' accessor
Guenter Roeck
linux at roeck-us.net
Sun Feb 19 06:56:36 PST 2023
On Sun, Feb 19, 2023 at 03:36:41PM +0100, 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 at linaro.org>
> ---
...
> drivers/hwmon/hwmon.c | 4 ++--
> drivers/hwmon/pmbus/pmbus_core.c | 2 +-
> drivers/hwmon/scmi-hwmon.c | 2 +-
> drivers/hwmon/scpi-hwmon.c | 2 +-
For hwmon:
Acked-by: Guenter Roeck <linux at roeck-us.net>
Guenter
More information about the Linux-mediatek
mailing list