]> git.proxmox.com Git - mirror_qemu.git/commit - hw/arm/musicpal.c
block: Eliminate DriveInfo member bdrv, use blk_by_legacy_dinfo()
authorMarkus Armbruster <armbru@redhat.com>
Tue, 7 Oct 2014 11:59:13 +0000 (13:59 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 20 Oct 2014 11:41:27 +0000 (13:41 +0200)
commitfa1d36df7466ebbef0331b79d0ce3c5e140695c9
tree09c705b3c00506d246b712a330deef215f483e2a
parent7f06d47eff9d26cca87855273f20786502f8c57e
block: Eliminate DriveInfo member bdrv, use blk_by_legacy_dinfo()

The patch is big, but all it really does is replacing

    dinfo->bdrv

by

    blk_bs(blk_by_legacy_dinfo(dinfo))

The replacement is repetitive, but the conversion of device models to
BlockBackend is imminent, and will shorten it to just
blk_legacy_dinfo(dinfo).

Line wrapping muddies the waters a bit.  I also omit tests whether
dinfo->bdrv is null, because it never is.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: BenoƮt Canet <benoit.canet@nodalink.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
44 files changed:
blockdev.c
hw/arm/collie.c
hw/arm/gumstix.c
hw/arm/mainstone.c
hw/arm/musicpal.c
hw/arm/nseries.c
hw/arm/omap1.c
hw/arm/omap2.c
hw/arm/omap_sx1.c
hw/arm/pxa2xx.c
hw/arm/spitz.c
hw/arm/versatilepb.c
hw/arm/vexpress.c
hw/arm/virt.c
hw/arm/xilinx_zynq.c
hw/arm/z2.c
hw/block/fdc.c
hw/block/m25p80.c
hw/block/xen_disk.c
hw/cris/axis_dev88.c
hw/display/tc6393xb.c
hw/i386/pc_sysfw.c
hw/ide/piix.c
hw/ide/qdev.c
hw/isa/pc87312.c
hw/lm32/lm32_boards.c
hw/lm32/milkymist.c
hw/microblaze/petalogix_ml605_mmu.c
hw/microblaze/petalogix_s3adsp1800_mmu.c
hw/mips/mips_malta.c
hw/mips/mips_r4k.c
hw/pci/pci-hotplug-old.c
hw/ppc/ppc405_boards.c
hw/ppc/spapr.c
hw/ppc/virtex_ml507.c
hw/scsi/scsi-bus.c
hw/sd/milkymist-memcard.c
hw/sd/pl181.c
hw/sd/sdhci.c
hw/sd/ssi-sd.c
hw/sh4/r2d.c
hw/usb/dev-storage.c
hw/xtensa/xtfpga.c
include/sysemu/blockdev.h