]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
um: drivers: virtio: use string choices helper
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 13 Nov 2025 02:25:26 +0000 (02:25 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 24 Nov 2025 13:12:09 +0000 (14:12 +0100)
Remove hard-coded strings by using the string helper functions

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87h5uywtwp.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/drivers/virtio_uml.c

index de7867ae220d0c59dc93b2df1d820a5f77a98603..6cf1152a1a4e63a99b26a3884ec14459459cb0cc 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
+#include <linux/string_choices.h>
 #include <linux/virtio.h>
 #include <linux/virtio_config.h>
 #include <linux/virtio_ring.h>
@@ -1151,8 +1152,7 @@ void virtio_uml_set_no_vq_suspend(struct virtio_device *vdev,
                return;
 
        vu_dev->no_vq_suspend = no_vq_suspend;
-       dev_info(&vdev->dev, "%sabled VQ suspend\n",
-                no_vq_suspend ? "dis" : "en");
+       dev_info(&vdev->dev, "%s VQ suspend\n", str_disabled_enabled(no_vq_suspend));
 }
 
 static void vu_of_conn_broken(struct work_struct *wk)