From: Janusz Krzysztofik <jmkrzyszt@gmail.com>
To: Aaro Koskinen <aaro.koskinen@iki.fi>,
Russell King <linux@armlinux.org.uk>,
Tony Lindgren <tony@atomide.com>,
linux-arm-kernel@lists.infradead.org,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: patches@armlinux.org.uk
Subject: Re: [RESEND][PATCH] arm: omap1: use string choices helper
Date: Mon, 11 Aug 2025 20:42:15 +0200 [thread overview]
Message-ID: <3002078.e9J7NaK4W3@dell> (raw)
In-Reply-To: <871ppodol8.wl-kuninori.morimoto.gx@renesas.com>
[-- Attachment #1: Type: text/plain, Size: 1200 bytes --]
On Thursday, 7 August 2025 01:20:36 CEST Kuninori Morimoto wrote:
> 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>
Acked-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
> ---
> 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[] = {
>
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2025-08-11 22:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-06 23:20 [RESEND][PATCH] arm: omap1: use string choices helper Kuninori Morimoto
2025-08-11 18:42 ` Janusz Krzysztofik [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=3002078.e9J7NaK4W3@dell \
--to=jmkrzyszt@gmail.com \
--cc=aaro.koskinen@iki.fi \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux@armlinux.org.uk \
--cc=patches@armlinux.org.uk \
--cc=tony@atomide.com \
/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