Linux clock framework development
 help / color / mirror / Atom feed
* [PATCH] clk: at91: main: Drop unneeded cast in at91_clk_register_main_osc()
@ 2026-08-21 12:44 Geert Uytterhoeven
  2026-08-21 13:42 ` Nicolas Ferre
  2026-08-24 15:25 ` Brian Masney
  0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2026-08-21 12:44 UTC (permalink / raw)
  To: Nicolas Ferre, Alexandre Belloni, Claudiu Beznea, Stephen Boyd,
	Brian Masney, Jerome Brunet
  Cc: Kees Cook, linux-clk, linux-arm-kernel, Geert Uytterhoeven

When assigning a non-const pointer to a const pointer, no cast is
needed.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
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 related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-24 15:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox