Alpha arch development list
 help / color / mirror / Atom feed
* [PATCH] alpha: Use str_yes_no() helper in pci_dac_dma_supported()
@ 2025-02-12 11:14 Thorsten Blum
  2025-02-12 12:57 ` Geert Uytterhoeven
  0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2025-02-12 11:14 UTC (permalink / raw)
  To: Richard Henderson, Matt Turner, Andrew Morton, Geert Uytterhoeven,
	Guo Weikang, Alexander Gordeev, Mike Rapoport (Microsoft),
	Suren Baghdasaryan
  Cc: Thorsten Blum, linux-alpha, linux-kernel

Remove hard-coded strings by using the str_yes_no() helper function.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
 arch/alpha/kernel/pci_iommu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/alpha/kernel/pci_iommu.c b/arch/alpha/kernel/pci_iommu.c
index 681f56089d9c..dc91de50f906 100644
--- a/arch/alpha/kernel/pci_iommu.c
+++ b/arch/alpha/kernel/pci_iommu.c
@@ -13,6 +13,7 @@
 #include <linux/log2.h>
 #include <linux/dma-map-ops.h>
 #include <linux/iommu-helper.h>
+#include <linux/string_choices.h>
 
 #include <asm/io.h>
 #include <asm/hwrpb.h>
@@ -212,7 +213,7 @@ static int pci_dac_dma_supported(struct pci_dev *dev, u64 mask)
 
 	/* If both conditions above are met, we are fine. */
 	DBGA("pci_dac_dma_supported %s from %ps\n",
-	     ok ? "yes" : "no", __builtin_return_address(0));
+	     str_yes_no(ok), __builtin_return_address(0));
 
 	return ok;
 }
-- 
2.48.1


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

end of thread, other threads:[~2025-02-12 12:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-12 11:14 [PATCH] alpha: Use str_yes_no() helper in pci_dac_dma_supported() Thorsten Blum
2025-02-12 12:57 ` Geert Uytterhoeven

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