pc-bios/s390-ccw: Split virtio-scsi code from virtio_blk_setup_device()
commitcf30b7c4a9b2c64518be8037c2e6670aacdb00b9
authorThomas Huth <thuth@redhat.com>
Mon, 4 Jul 2022 11:19:00 +0000 (4 13:19 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 6 Jul 2022 16:35:10 +0000 (6 18:35 +0200)
tree22cbf69afe6d3fb45d02c72121f62088ea0db85f
parent070824885741f5d2a66626d3c4ecb2773c8e0552
pc-bios/s390-ccw: Split virtio-scsi code from virtio_blk_setup_device()

The next patch is going to add more virtio-block specific code to
virtio_blk_setup_device(), and if the virtio-scsi code is also in
there, this is more cumbersome. And the calling function virtio_setup()
in main.c looks at the device type already anyway, so it's more
logical to separate the virtio-scsi stuff into a new function in
virtio-scsi.c instead.

Message-Id: <20220704111903.62400-10-thuth@redhat.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
pc-bios/s390-ccw/main.c
pc-bios/s390-ccw/virtio-blkdev.c
pc-bios/s390-ccw/virtio-scsi.c
pc-bios/s390-ccw/virtio-scsi.h