Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

um: drivers: virtio: use string choices helper

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>

authored by

Kuninori Morimoto and committed by
Johannes Berg
54618003 293f7143

+2 -2
+2 -2
arch/um/drivers/virtio_uml.c
··· 24 24 #include <linux/of.h> 25 25 #include <linux/platform_device.h> 26 26 #include <linux/slab.h> 27 + #include <linux/string_choices.h> 27 28 #include <linux/virtio.h> 28 29 #include <linux/virtio_config.h> 29 30 #include <linux/virtio_ring.h> ··· 1152 1151 return; 1153 1152 1154 1153 vu_dev->no_vq_suspend = no_vq_suspend; 1155 - dev_info(&vdev->dev, "%sabled VQ suspend\n", 1156 - no_vq_suspend ? "dis" : "en"); 1154 + dev_info(&vdev->dev, "%s VQ suspend\n", str_disabled_enabled(no_vq_suspend)); 1157 1155 } 1158 1156 1159 1157 static void vu_of_conn_broken(struct work_struct *wk)