* Re: [PATCH] clk: at91: main: Drop unneeded cast in at91_clk_register_main_osc()
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
2026-08-24 15:25 ` Brian Masney
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Nicolas Ferre @ 2026-08-21 13:42 UTC (permalink / raw)
To: Geert Uytterhoeven, Alexandre Belloni, Claudiu Beznea,
Stephen Boyd, Brian Masney, Jerome Brunet
Cc: Kees Cook, linux-clk, linux-arm-kernel
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
>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] clk: at91: main: Drop unneeded cast in at91_clk_register_main_osc()
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
@ 2026-08-24 15:25 ` Brian Masney
2026-09-19 14:40 ` claudiu beznea
2026-09-28 7:20 ` Claudiu Beznea
3 siblings, 0 replies; 5+ messages in thread
From: Brian Masney @ 2026-08-24 15:25 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Nicolas Ferre, Alexandre Belloni, Claudiu Beznea, Stephen Boyd,
Brian Masney, Jerome Brunet, Kees Cook, linux-clk,
linux-arm-kernel
On Fri, Aug 21, 2026 at 02:44:28PM +0200, 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>
Reviewed-by: Brian Masney <bmasney@redhat.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] clk: at91: main: Drop unneeded cast in at91_clk_register_main_osc()
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
2026-08-24 15:25 ` Brian Masney
@ 2026-09-19 14:40 ` claudiu beznea
2026-09-28 7:20 ` Claudiu Beznea
3 siblings, 0 replies; 5+ messages in thread
From: claudiu beznea @ 2026-09-19 14:40 UTC (permalink / raw)
To: Geert Uytterhoeven, Nicolas Ferre, Alexandre Belloni,
Stephen Boyd, Brian Masney, Jerome Brunet
Cc: Kees Cook, linux-clk, linux-arm-kernel
On 8/21/26 15: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>
Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] clk: at91: main: Drop unneeded cast in at91_clk_register_main_osc()
2026-08-21 12:44 [PATCH] clk: at91: main: Drop unneeded cast in at91_clk_register_main_osc() Geert Uytterhoeven
` (2 preceding siblings ...)
2026-09-19 14:40 ` claudiu beznea
@ 2026-09-28 7:20 ` Claudiu Beznea
3 siblings, 0 replies; 5+ messages in thread
From: Claudiu Beznea @ 2026-09-28 7:20 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Nicolas Ferre, Alexandre Belloni, Claudiu Beznea, Stephen Boyd,
Brian Masney, Jerome Brunet, Kees Cook, linux-clk,
linux-arm-kernel
On Fri, Aug 21, 2026 at 02:44:28PM +0200, 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>
Applied to clk-microchip, thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread