Thread (16 messages) 16 messages, 12 authors, 2023-02-20

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

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2023-02-20 12:19:51
Also in: linux-acpi, linux-arm-msm, linux-hwmon, linux-ide, linux-iio, linux-mediatek, linux-omap, linux-pm, linux-renesas-soc, linux-samsung-soc, linux-sunxi, linux-tegra, linux-wireless, lkml, netdev

Hi Adam,

On Mon, Feb 20, 2023 at 12:14 PM DLG Adam Ward
[off-list ref] wrote:
On 19/02/23 14:37, Daniel Lezcano wrote:
quoted
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 <redacted>
---
quoted
drivers/thermal/da9062-thermal.c                 |  2 +-
For da9062:

Reviewed-by: Adam Ward <redacted>
Looks like Daniel has found the new Dialog maintainer he was looking
for? Time to update MAINTAINERS?

Thanks!

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help