mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 00:07:57 -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
|
@ -242,7 +242,7 @@ static const Property virtio_input_hid_properties[] = {
|
|||
DEFINE_PROP_UINT32("head", VirtIOInputHID, head, 0),
|
||||
};
|
||||
|
||||
static void virtio_input_hid_class_init(ObjectClass *klass, void *data)
|
||||
static void virtio_input_hid_class_init(ObjectClass *klass, const void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
VirtIOInputClass *vic = VIRTIO_INPUT_CLASS(klass);
|
||||
|
@ -383,7 +383,7 @@ static const Property virtio_mouse_properties[] = {
|
|||
DEFINE_PROP_BOOL("wheel-axis", VirtIOInputHID, wheel_axis, true),
|
||||
};
|
||||
|
||||
static void virtio_mouse_class_init(ObjectClass *klass, void *data)
|
||||
static void virtio_mouse_class_init(ObjectClass *klass, const void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
|
||||
|
@ -507,7 +507,7 @@ static const Property virtio_tablet_properties[] = {
|
|||
DEFINE_PROP_BOOL("wheel-axis", VirtIOInputHID, wheel_axis, true),
|
||||
};
|
||||
|
||||
static void virtio_tablet_class_init(ObjectClass *klass, void *data)
|
||||
static void virtio_tablet_class_init(ObjectClass *klass, const void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue