mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
qom: Have class_init() take a const data argument
Mechanical change using gsed, then style manually adapted to pass checkpatch.pl script. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250424194905.82506-4-philmd@linaro.org>
This commit is contained in:
parent
f1fa787b92
commit
12d1a768bd
1121 changed files with 1774 additions and 1707 deletions
|
@ -2498,7 +2498,7 @@ static const Property qxl_properties[] = {
|
|||
DEFINE_PROP_BOOL("global-vmstate", PCIQXLDevice, vga.global_vmstate, false),
|
||||
};
|
||||
|
||||
static void qxl_pci_class_init(ObjectClass *klass, void *data)
|
||||
static void qxl_pci_class_init(ObjectClass *klass, const void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
|
||||
|
@ -2523,7 +2523,7 @@ static const TypeInfo qxl_pci_type_info = {
|
|||
},
|
||||
};
|
||||
|
||||
static void qxl_primary_class_init(ObjectClass *klass, void *data)
|
||||
static void qxl_primary_class_init(ObjectClass *klass, const void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
|
||||
|
@ -2543,7 +2543,7 @@ static const TypeInfo qxl_primary_info = {
|
|||
module_obj("qxl-vga");
|
||||
module_kconfig(QXL);
|
||||
|
||||
static void qxl_secondary_class_init(ObjectClass *klass, void *data)
|
||||
static void qxl_secondary_class_init(ObjectClass *klass, const void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue