mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -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
|
@ -2001,7 +2001,7 @@ static const Property scsi_props[] = {
|
|||
DEFINE_PROP_UINT32("lun", SCSIDevice, lun, -1),
|
||||
};
|
||||
|
||||
static void scsi_device_class_init(ObjectClass *klass, void *data)
|
||||
static void scsi_device_class_init(ObjectClass *klass, const void *data)
|
||||
{
|
||||
DeviceClass *k = DEVICE_CLASS(klass);
|
||||
set_bit(DEVICE_CATEGORY_STORAGE, k->categories);
|
||||
|
@ -2030,7 +2030,7 @@ static const TypeInfo scsi_device_type_info = {
|
|||
.instance_init = scsi_dev_instance_init,
|
||||
};
|
||||
|
||||
static void scsi_bus_class_init(ObjectClass *klass, void *data)
|
||||
static void scsi_bus_class_init(ObjectClass *klass, const void *data)
|
||||
{
|
||||
BusClass *k = BUS_CLASS(klass);
|
||||
HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(klass);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue