diff options
author | Jonah Palmer | 2022-04-01 15:23:18 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2022-05-16 10:38:40 +0200 |
commit | 3857cd5c7ffd0bcc49bd2b66654af0909c847d02 (patch) | |
tree | a5d86e6d1e9b123f17d7ff1399cc05f0a8aa3df0 /hw/input/virtio-input.c | |
parent | virtio/vhost-user: dynamically assign VhostUserHostNotifiers (diff) | |
download | qemu-3857cd5c7ffd0bcc49bd2b66654af0909c847d02.tar.gz qemu-3857cd5c7ffd0bcc49bd2b66654af0909c847d02.tar.xz qemu-3857cd5c7ffd0bcc49bd2b66654af0909c847d02.zip |
virtio: drop name parameter for virtio_init()
This patch drops the name parameter for the virtio_init function.
The pair between the numeric device ID and the string device ID
(name) of a virtio device already exists, but not in a way that
lets us map between them.
This patch lets us do this and removes the need for the name
parameter in the virtio_init function.
Signed-off-by: Jonah Palmer <jonah.palmer@oracle.com>
Message-Id: <1648819405-25696-2-git-send-email-jonah.palmer@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/input/virtio-input.c')
-rw-r--r-- | hw/input/virtio-input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/input/virtio-input.c b/hw/input/virtio-input.c index 54bcb46c74..5b5398b3ca 100644 --- a/hw/input/virtio-input.c +++ b/hw/input/virtio-input.c @@ -257,8 +257,7 @@ static void virtio_input_device_realize(DeviceState *dev, Error **errp) vinput->cfg_size += 8; assert(vinput->cfg_size <= sizeof(virtio_input_config)); - virtio_init(vdev, "virtio-input", VIRTIO_ID_INPUT, - vinput->cfg_size); + virtio_init(vdev, VIRTIO_ID_INPUT, vinput->cfg_size); vinput->evt = virtio_add_queue(vdev, 64, virtio_input_handle_evt); vinput->sts = virtio_add_queue(vdev, 64, virtio_input_handle_sts); } |