mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33: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
|
@ -56,7 +56,8 @@
|
|||
#define DESIGNWARE_PCIE_ATU_DEVFN(x) (((x) >> 16) & 0xff)
|
||||
#define DESIGNWARE_PCIE_ATU_UPPER_TARGET 0x91C
|
||||
|
||||
static void designware_pcie_root_bus_class_init(ObjectClass *klass, void *data)
|
||||
static void designware_pcie_root_bus_class_init(ObjectClass *klass,
|
||||
const void *data)
|
||||
{
|
||||
BusClass *k = BUS_CLASS(klass);
|
||||
|
||||
|
@ -587,7 +588,8 @@ static const VMStateDescription vmstate_designware_pcie_root = {
|
|||
}
|
||||
};
|
||||
|
||||
static void designware_pcie_root_class_init(ObjectClass *klass, void *data)
|
||||
static void designware_pcie_root_class_init(ObjectClass *klass,
|
||||
const void *data)
|
||||
{
|
||||
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
|
@ -727,7 +729,8 @@ static const VMStateDescription vmstate_designware_pcie_host = {
|
|||
}
|
||||
};
|
||||
|
||||
static void designware_pcie_host_class_init(ObjectClass *klass, void *data)
|
||||
static void designware_pcie_host_class_init(ObjectClass *klass,
|
||||
const void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
PCIHostBridgeClass *hc = PCI_HOST_BRIDGE_CLASS(klass);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue