All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk/ti/adpll: Make const pointer error a static const array
@ 2021-11-27 17:30 Colin Ian King
  2021-12-09  7:43 ` Tony Lindgren
  2021-12-09  8:17 ` Stephen Boyd
  0 siblings, 2 replies; 3+ messages in thread
From: Colin Ian King @ 2021-11-27 17:30 UTC (permalink / raw)
  To: Tero Kristo, Michael Turquette, Stephen Boyd, linux-omap, linux-clk
  Cc: kernel-janitors, linux-kernel

Make const pointer error a static const array, removes a dereference
and shrinks object code a little.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 drivers/clk/ti/adpll.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/ti/adpll.c b/drivers/clk/ti/adpll.c
index b341cd990be7..962502ca7ff0 100644
--- a/drivers/clk/ti/adpll.c
+++ b/drivers/clk/ti/adpll.c
@@ -807,7 +807,7 @@ static int ti_adpll_init_registers(struct ti_adpll_data *d)
 
 static int ti_adpll_init_inputs(struct ti_adpll_data *d)
 {
-	const char *error = "need at least %i inputs";
+	static const char error[] = "need at least %i inputs";
 	struct clk *clock;
 	int nr_inputs;
 
-- 
2.33.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] clk/ti/adpll: Make const pointer error a static const array
  2021-11-27 17:30 [PATCH] clk/ti/adpll: Make const pointer error a static const array Colin Ian King
@ 2021-12-09  7:43 ` Tony Lindgren
  2021-12-09  8:17 ` Stephen Boyd
  1 sibling, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2021-12-09  7:43 UTC (permalink / raw)
  To: Colin Ian King
  Cc: Tero Kristo, Michael Turquette, Stephen Boyd, linux-omap,
	linux-clk, kernel-janitors, linux-kernel

* Colin Ian King <colin.i.king@googlemail.com> [211127 19:33]:
> Make const pointer error a static const array, removes a dereference
> and shrinks object code a little.

Acked-by: Tony Lindgren <tony@atomide.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] clk/ti/adpll: Make const pointer error a static const array
  2021-11-27 17:30 [PATCH] clk/ti/adpll: Make const pointer error a static const array Colin Ian King
  2021-12-09  7:43 ` Tony Lindgren
@ 2021-12-09  8:17 ` Stephen Boyd
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2021-12-09  8:17 UTC (permalink / raw)
  To: Colin Ian King, Michael Turquette, Tero Kristo, linux-clk, linux-omap
  Cc: kernel-janitors, linux-kernel

Quoting Colin Ian King (2021-11-27 09:30:36)
> Make const pointer error a static const array, removes a dereference
> and shrinks object code a little.
> 
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
> ---

Applied to clk-next

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-09  8:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-27 17:30 [PATCH] clk/ti/adpll: Make const pointer error a static const array Colin Ian King
2021-12-09  7:43 ` Tony Lindgren
2021-12-09  8:17 ` Stephen Boyd

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.