public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [resend][PATCH v2] arm: omap2: use string choices helper
@ 2025-07-18  1:52 Kuninori Morimoto
  2025-07-18  8:14 ` Andreas Kemnade
  2025-09-08 21:31 ` Kevin Hilman
  0 siblings, 2 replies; 3+ messages in thread
From: Kuninori Morimoto @ 2025-07-18  1:52 UTC (permalink / raw)
  To: rmk+kernel, Aaro Koskinen, Andreas Kemnade, Kevin Hilman,
	Roger Quadros, Russell King, Tony Lindgren, linux-arm-kernel

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

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
---
 arch/arm/mach-omap2/board-n8x0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c
index ff2a4a4d8220..969265d5d5c6 100644
--- a/arch/arm/mach-omap2/board-n8x0.c
+++ b/arch/arm/mach-omap2/board-n8x0.c
@@ -167,7 +167,7 @@ static int n8x0_mmc_set_power_menelaus(struct device *dev, int slot,
 
 #ifdef CONFIG_MMC_DEBUG
 	dev_dbg(dev, "Set slot %d power: %s (vdd %d)\n", slot + 1,
-		power_on ? "on" : "off", vdd);
+		str_on_off(power_on), vdd);
 #endif
 	if (slot == 0) {
 		if (!power_on)
-- 
2.43.0



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

* Re: [resend][PATCH v2] arm: omap2: use string choices helper
  2025-07-18  1:52 [resend][PATCH v2] arm: omap2: use string choices helper Kuninori Morimoto
@ 2025-07-18  8:14 ` Andreas Kemnade
  2025-09-08 21:31 ` Kevin Hilman
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Kemnade @ 2025-07-18  8:14 UTC (permalink / raw)
  To: Kuninori Morimoto
  Cc: rmk+kernel, Aaro Koskinen, Kevin Hilman, Roger Quadros,
	Russell King, Tony Lindgren, linux-arm-kernel

Am Fri, 18 Jul 2025 01:52:01 +0000
schrieb Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>:

> We can use string choices helper, let's use it.
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> Reviewed-by: Andy Shevchenko <andy@kernel.org>

Reviewed-by: Andreas Kemnade <andreas@kemnade.info>

> ---
>  arch/arm/mach-omap2/board-n8x0.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c
> index ff2a4a4d8220..969265d5d5c6 100644
> --- a/arch/arm/mach-omap2/board-n8x0.c
> +++ b/arch/arm/mach-omap2/board-n8x0.c
> @@ -167,7 +167,7 @@ static int n8x0_mmc_set_power_menelaus(struct device *dev, int slot,
>  
>  #ifdef CONFIG_MMC_DEBUG
>  	dev_dbg(dev, "Set slot %d power: %s (vdd %d)\n", slot + 1,
> -		power_on ? "on" : "off", vdd);
> +		str_on_off(power_on), vdd);
>  #endif
>  	if (slot == 0) {
>  		if (!power_on)



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

* Re: [resend][PATCH v2] arm: omap2: use string choices helper
  2025-07-18  1:52 [resend][PATCH v2] arm: omap2: use string choices helper Kuninori Morimoto
  2025-07-18  8:14 ` Andreas Kemnade
@ 2025-09-08 21:31 ` Kevin Hilman
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Hilman @ 2025-09-08 21:31 UTC (permalink / raw)
  To: rmk+kernel, Aaro Koskinen, Andreas Kemnade, Roger Quadros,
	Russell King, Tony Lindgren, linux-arm-kernel, Kuninori Morimoto


On Fri, 18 Jul 2025 01:52:01 +0000, Kuninori Morimoto wrote:
> We can use string choices helper, let's use it.
> 
> 

Applied, thanks!

[1/1] arm: omap2: use string choices helper
      commit: 21e2e1abd4321a220a11c2963ff60214fd73c3e8

Best regards,
-- 
Kevin Hilman <khilman@baylibre.com>



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

end of thread, other threads:[~2025-09-09  6:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-18  1:52 [resend][PATCH v2] arm: omap2: use string choices helper Kuninori Morimoto
2025-07-18  8:14 ` Andreas Kemnade
2025-09-08 21:31 ` Kevin Hilman

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