mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-06 06:27:41 -07: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
|
|
@ -637,7 +637,7 @@ static const Property serial_properties[] = {
|
|||
DEFINE_PROP_BOOL("always-plugged", USBSerialState, always_plugged, false),
|
||||
};
|
||||
|
||||
static void usb_serial_dev_class_init(ObjectClass *klass, void *data)
|
||||
static void usb_serial_dev_class_init(ObjectClass *klass, const void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
USBDeviceClass *uc = USB_DEVICE_CLASS(klass);
|
||||
|
|
@ -658,7 +658,7 @@ static const TypeInfo usb_serial_dev_type_info = {
|
|||
.class_init = usb_serial_dev_class_init,
|
||||
};
|
||||
|
||||
static void usb_serial_class_initfn(ObjectClass *klass, void *data)
|
||||
static void usb_serial_class_initfn(ObjectClass *klass, const void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
USBDeviceClass *uc = USB_DEVICE_CLASS(klass);
|
||||
|
|
@ -678,7 +678,7 @@ static const Property braille_properties[] = {
|
|||
DEFINE_PROP_CHR("chardev", USBSerialState, cs),
|
||||
};
|
||||
|
||||
static void usb_braille_class_initfn(ObjectClass *klass, void *data)
|
||||
static void usb_braille_class_initfn(ObjectClass *klass, const void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
USBDeviceClass *uc = USB_DEVICE_CLASS(klass);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue