mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
vga: rename pci_vga_init() into pci_std_vga_init()
This better explains what is this function about. Adjust all callers. Cc: Alexander Graf <agraf@suse.de> Cc: Andreas Färber <andreas.faerber@web.de> Cc: David Gibson <david@gibson.dropbear.id.au> Cc: Anthony Liguori <aliguori@us.ibm.com> Acked-by: Richard Henderson <rth@twiddle.net> Acked-by: Blue Swirl <blauwirbel@gmail.com> Acked-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
626cd050e2
commit
a1e472119a
10 changed files with 12 additions and 12 deletions
|
@ -47,7 +47,7 @@ static const VMStateDescription vmstate_vga_pci = {
|
|||
}
|
||||
};
|
||||
|
||||
static int pci_vga_initfn(PCIDevice *dev)
|
||||
static int pci_std_vga_initfn(PCIDevice *dev)
|
||||
{
|
||||
PCIVGAState *d = DO_UPCAST(PCIVGAState, dev, dev);
|
||||
VGACommonState *s = &d->vga;
|
||||
|
@ -70,7 +70,7 @@ static int pci_vga_initfn(PCIDevice *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DeviceState *pci_vga_init(PCIBus *bus)
|
||||
DeviceState *pci_std_vga_init(PCIBus *bus)
|
||||
{
|
||||
return &pci_create_simple(bus, -1, "VGA")->qdev;
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ static void vga_class_init(ObjectClass *klass, void *data)
|
|||
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
|
||||
|
||||
k->no_hotplug = 1;
|
||||
k->init = pci_vga_initfn;
|
||||
k->init = pci_std_vga_initfn;
|
||||
k->romfile = "vgabios-stdvga.bin";
|
||||
k->vendor_id = PCI_VENDOR_ID_QEMU;
|
||||
k->device_id = PCI_DEVICE_ID_QEMU_VGA;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue