mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53: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
|
@ -51,7 +51,7 @@ static const Property static_props[] = {
|
|||
DEFINE_PROP_UINT32("prop2", MyType, prop2, PROP_DEFAULT),
|
||||
};
|
||||
|
||||
static void static_prop_class_init(ObjectClass *oc, void *data)
|
||||
static void static_prop_class_init(ObjectClass *oc, const void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(oc);
|
||||
|
||||
|
@ -177,7 +177,7 @@ static void dynamic_instance_init(Object *obj)
|
|||
NULL, NULL);
|
||||
}
|
||||
|
||||
static void dynamic_class_init(ObjectClass *oc, void *data)
|
||||
static void dynamic_class_init(ObjectClass *oc, const void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(oc);
|
||||
|
||||
|
@ -193,7 +193,7 @@ static const TypeInfo dynamic_prop_type = {
|
|||
.class_init = dynamic_class_init,
|
||||
};
|
||||
|
||||
static void hotplug_class_init(ObjectClass *oc, void *data)
|
||||
static void hotplug_class_init(ObjectClass *oc, const void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(oc);
|
||||
|
||||
|
@ -209,7 +209,7 @@ static const TypeInfo hotplug_type = {
|
|||
.class_init = hotplug_class_init,
|
||||
};
|
||||
|
||||
static void nohotplug_class_init(ObjectClass *oc, void *data)
|
||||
static void nohotplug_class_init(ObjectClass *oc, const void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(oc);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue