]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ARM: 9454/1: kernel: bios32: use string choices helper
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 6 Aug 2025 23:20:51 +0000 (00:20 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 2 Oct 2025 07:44:37 +0000 (08:44 +0100)
We can use string choices helper, let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/bios32.c

index d334c7fb672b7cec30c2a5af06260960af2a8dda..b5793e8fbdc11bdf0f9843c86eccc45441d29e78 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/kernel.h>
 #include <linux/pci.h>
 #include <linux/slab.h>
+#include <linux/string_choices.h>
 #include <linux/init.h>
 #include <linux/io.h>
 
@@ -337,8 +338,8 @@ void pcibios_fixup_bus(struct pci_bus *bus)
        /*
         * Report what we did for this bus
         */
-       pr_info("PCI: bus%d: Fast back to back transfers %sabled\n",
-               bus->number, (features & PCI_COMMAND_FAST_BACK) ? "en" : "dis");
+       pr_info("PCI: bus%d: Fast back to back transfers %s\n",
+               bus->number, str_enabled_disabled(features & PCI_COMMAND_FAST_BACK));
 }
 EXPORT_SYMBOL(pcibios_fixup_bus);