From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Amit Kucheria <amitk@kernel.org>, Zhang Rui <rui.zhang@intel.com>
Cc: kernel@pengutronix.de, linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] thermal: core: constify params in thermal_zone_device_register
Date: Thu, 13 Jul 2023 14:55:07 +0200 [thread overview]
Message-ID: <29d2533f-9297-6383-e26c-dced2756f817@linaro.org> (raw)
In-Reply-To: <20230708112720.2897484-1-a.fatoum@pengutronix.de>
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@pengutronix.de>
> ---
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
next prev parent reply other threads:[~2023-07-13 12:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-08 11:27 Ahmad Fatoum
2023-07-08 11:27 ` [PATCH 2/2] thermal: of: fix double-free on unregistration Ahmad Fatoum
2023-07-11 18:05 ` Rafael J. Wysocki
2023-07-13 12:52 ` Daniel Lezcano
2023-07-10 17:33 ` [PATCH 1/2] thermal: core: constify params in thermal_zone_device_register Rafael J. Wysocki
2023-07-10 19:21 ` Ahmad Fatoum
2023-07-13 12:55 ` Daniel Lezcano [this message]
2023-07-20 18:58 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=29d2533f-9297-6383-e26c-dced2756f817@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=a.fatoum@pengutronix.de \
--cc=amitk@kernel.org \
--cc=kernel@pengutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=rui.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®