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:
Philippe Mathieu-Daudé 2025-02-09 23:47:35 +01:00
parent f1fa787b92
commit 12d1a768bd
1121 changed files with 1774 additions and 1707 deletions

View file

@ -482,7 +482,7 @@ static const VMStateDescription vmstate_elroy = {
}
};
static void elroy_pcihost_class_init(ObjectClass *klass, void *data)
static void elroy_pcihost_class_init(ObjectClass *klass, const void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
@ -909,7 +909,7 @@ static void astro_realize(DeviceState *obj, Error **errp)
}
}
static void astro_class_init(ObjectClass *klass, void *data)
static void astro_class_init(ObjectClass *klass, const void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
@ -932,7 +932,7 @@ static const TypeInfo astro_chip_info = {
};
static void astro_iommu_memory_region_class_init(ObjectClass *klass,
void *data)
const void *data)
{
IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass);