Re: [PATCH 1/2] thermal: core: constify params in thermal_zone_device_register
From: Rafael J. Wysocki
Date: Thu Jul 20 2023 - 14:58:57 EST
On Thu, Jul 13, 2023 at 2:55 PM Daniel Lezcano
<daniel.lezcano@xxxxxxxxxx> wrote:
>
> On 08/07/2023 13:27, Ahmad Fatoum wrote:
> > Since commit 3d439b1a2ad3 ("thermal/core: Alloc-copy-free the thermal zone
> > parameters structure"), thermal_zone_device_register() allocates a copy
> > of the tzp argument and callers need not explicitly manage its lifetime.
> >
> > This means the function no longer cares about the parameter being
> > mutable, so constify it.
> >
> > No functional change.
> >
> > Fixes: 3d439b1a2ad3 ("thermal/core: Alloc-copy-free the thermal zone parameters structure")
> > Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
> > ---
>
> Acked-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
Both patches in the series applied as 6.5-rc material, thanks!