public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [RESEND][PATCH] arm: omap1: use string choices helper
@ 2025-08-06 23:20 Kuninori Morimoto
  2025-08-11 18:42 ` Janusz Krzysztofik
  0 siblings, 1 reply; 2+ messages in thread
From: Kuninori Morimoto @ 2025-08-06 23:20 UTC (permalink / raw)
  To: Aaro Koskinen, Janusz Krzysztofik, Russell King, Tony Lindgren,
	linux-arm-kernel
  Cc: patches

We can use string choices helper, let's use it.

It updates format

-	..."%sabled", ...? "dis" : "en",
+	..."%s",      ...  str_disabled_enabled(...)
	      ^^^^^

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
---
KernelVersion: v6.17

 arch/arm/mach-omap1/board-ams-delta.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c
index 16392720296c..52681837ba4d 100644
--- a/arch/arm/mach-omap1/board-ams-delta.c
+++ b/arch/arm/mach-omap1/board-ams-delta.c
@@ -759,8 +759,8 @@ static void modem_pm(struct uart_port *port, unsigned int state, unsigned old)
 
 	if (ret)
 		dev_warn(port->dev,
-			 "ams_delta modem_pm: failed to %sable regulator: %d\n",
-			 state ? "dis" : "en", ret);
+			 "ams_delta modem_pm: failed to %s regulator: %d\n",
+			 str_disable_enable(state), ret);
 }
 
 static struct plat_serial8250_port ams_delta_modem_ports[] = {
-- 
2.43.0



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

end of thread, other threads:[~2025-08-11 22:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-06 23:20 [RESEND][PATCH] arm: omap1: use string choices helper Kuninori Morimoto
2025-08-11 18:42 ` Janusz Krzysztofik

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