mirror of https://github.com/torvalds/linux.git
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>
This commit is contained in:
parent
293f71435d
commit
54618003a1
|
|
@ -24,6 +24,7 @@
|
||||||
#include <linux/of.h>
|
#include <linux/of.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
|
#include <linux/string_choices.h>
|
||||||
#include <linux/virtio.h>
|
#include <linux/virtio.h>
|
||||||
#include <linux/virtio_config.h>
|
#include <linux/virtio_config.h>
|
||||||
#include <linux/virtio_ring.h>
|
#include <linux/virtio_ring.h>
|
||||||
|
|
@ -1151,8 +1152,7 @@ void virtio_uml_set_no_vq_suspend(struct virtio_device *vdev,
|
||||||
return;
|
return;
|
||||||
|
|
||||||
vu_dev->no_vq_suspend = no_vq_suspend;
|
vu_dev->no_vq_suspend = no_vq_suspend;
|
||||||
dev_info(&vdev->dev, "%sabled VQ suspend\n",
|
dev_info(&vdev->dev, "%s VQ suspend\n", str_disabled_enabled(no_vq_suspend));
|
||||||
no_vq_suspend ? "dis" : "en");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void vu_of_conn_broken(struct work_struct *wk)
|
static void vu_of_conn_broken(struct work_struct *wk)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue