From: Nicolas Ferre <nicolas.ferre@microchip.com>
To: Geert Uytterhoeven <geert+renesas@glider.be>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Claudiu Beznea <claudiu.beznea@tuxon.dev>,
Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>
Cc: Kees Cook <kees@kernel.org>, <linux-clk@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH] clk: at91: main: Drop unneeded cast in at91_clk_register_main_osc()
Date: Fri, 21 Aug 2026 15:42:41 +0200 [thread overview]
Message-ID: <3a3823f1-7dcd-474f-bb81-e5175752f649@microchip.com> (raw)
In-Reply-To: <51abd9177801984889c2a0c321ea8587677178c8.1787316176.git.geert+renesas@glider.be>
On 21/08/2026 at 14:44, Geert Uytterhoeven wrote:
> When assigning a non-const pointer to a const pointer, no cast is
> needed.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Yes, thanks Geert:
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
> ---
> No changes in generated code.
> ---
> drivers/clk/at91/clk-main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/at91/clk-main.c b/drivers/clk/at91/clk-main.c
> index 6074ed2a16cede94..77f905e57e1ab4de 100644
> --- a/drivers/clk/at91/clk-main.c
> +++ b/drivers/clk/at91/clk-main.c
> @@ -170,7 +170,7 @@ at91_clk_register_main_osc(struct regmap *regmap,
> init.name = name;
> init.ops = &main_osc_ops;
> if (parent_data)
> - init.parent_data = (const struct clk_parent_data *)parent_data;
> + init.parent_data = parent_data;
> else
> init.parent_names = &parent_name;
> init.num_parents = 1;
> --
> 2.43.0
>
prev parent reply other threads:[~2026-08-21 13:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-21 12:44 [PATCH] clk: at91: main: Drop unneeded cast in at91_clk_register_main_osc() Geert Uytterhoeven
2026-08-21 13:42 ` Nicolas Ferre [this message]
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=3a3823f1-7dcd-474f-bb81-e5175752f649@microchip.com \
--to=nicolas.ferre@microchip.com \
--cc=alexandre.belloni@bootlin.com \
--cc=bmasney+clk@redhat.com \
--cc=claudiu.beznea@tuxon.dev \
--cc=geert+renesas@glider.be \
--cc=jbrunet+clk@baylibre.com \
--cc=kees@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=sboyd@kernel.org \
/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