[PATCH] arm: orion5x: use string choices helper

Kuninori Morimoto
2025-06-17T00:23:54Z

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