From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Alexander Clouter <alex@digriz.org.uk>,
Andrew Lunn <andrew@lunn.ch>,
Gregory Clement <gregory.clement@bootlin.com>,
Russell King <linux@armlinux.org.uk>,
Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Cc: Andy Shevchenko <andy@kernel.org>, Kees Cook <kees@kernel.org>,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm: orion5x: use string choices helper
Date: Tue, 17 Jun 2025 00:07:42 +0000 [thread overview]
Message-ID: <87ldprnsc2.wl-kuninori.morimoto.gx@renesas.com> (raw)
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
arch/arm/mach-orion5x/ts78xx-setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-orion5x/ts78xx-setup.c b/arch/arm/mach-orion5x/ts78xx-setup.c
index af810e7ccd79..c250703e696d 100644
--- a/arch/arm/mach-orion5x/ts78xx-setup.c
+++ b/arch/arm/mach-orion5x/ts78xx-setup.c
@@ -460,7 +460,7 @@ static ssize_t ts78xx_fpga_show(struct kobject *kobj,
if (ts78xx_fpga.state < 0)
return sprintf(buf, "borked\n");
- return sprintf(buf, "%s\n", (ts78xx_fpga.state) ? "online" : "offline");
+ return sprintf(buf, "%sline\n", str_on_off(ts78xx_fpga.state));
}
static ssize_t ts78xx_fpga_store(struct kobject *kobj,
--
2.43.0
next reply other threads:[~2025-06-17 0:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-17 0:07 Kuninori Morimoto [this message]
2025-06-17 1:28 ` [PATCH] arm: orion5x: use string choices helper Andrew Lunn
2025-06-17 1:33 ` Kuninori Morimoto
2025-06-17 2:06 ` Andrew Lunn
2025-06-17 2:13 ` Kuninori Morimoto
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=87ldprnsc2.wl-kuninori.morimoto.gx@renesas.com \
--to=kuninori.morimoto.gx@renesas.com \
--cc=alex@digriz.org.uk \
--cc=andrew@lunn.ch \
--cc=andy@kernel.org \
--cc=gregory.clement@bootlin.com \
--cc=kees@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux@armlinux.org.uk \
--cc=sebastian.hesselbarth@gmail.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