Philippe Mathieu-Daudé
bf85388169
qdev: use device_class_set_parent_realize/unrealize/reset()
changes generated using the following Coccinelle patch:
@@
type DeviceParentClass;
DeviceParentClass *pc;
DeviceClass *dc;
identifier parent_fn;
identifier child_fn;
@@
(
+device_class_set_parent_realize(dc, child_fn, &pc->parent_fn);
-pc->parent_fn = dc->realize;
...
-dc->realize = child_fn;
|
+device_class_set_parent_unrealize(dc, child_fn, &pc->parent_fn);
-pc->parent_fn = dc->unrealize;
...
-dc->unrealize = child_fn;
|
+device_class_set_parent_reset(dc, child_fn, &pc->parent_fn);
-pc->parent_fn = dc->reset;
...
-dc->reset = child_fn;
)
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20180114020412.26160-4-f4bug@amsat.org>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-02-05 13:54:38 +01:00
..
2018-01-16 14:54:51 +01:00
2017-09-19 18:21:33 +02:00
2017-09-19 18:21:33 +02:00
2016-12-22 16:01:04 +01:00
2017-01-10 08:49:59 -08:00
2017-12-22 15:01:48 +01:00
2018-02-05 13:54:38 +01:00
2018-01-25 16:02:24 +01:00
2018-01-25 16:02:24 +01:00
2017-07-05 09:12:44 +02:00
2016-12-22 16:00:25 +01:00
2018-01-16 14:54:51 +01:00
2017-12-18 17:07:02 +03:00
2017-12-18 17:07:02 +03:00
2017-01-19 22:07:46 +01:00
2017-01-19 22:07:46 +01:00
2017-09-19 14:09:34 +02:00
2017-01-19 22:07:46 +01:00
2017-12-18 17:07:02 +03:00
2017-07-05 09:12:44 +02:00
2017-02-16 18:37:01 +01:00
2017-09-19 16:20:49 +02:00
2017-09-19 16:20:49 +02:00
2017-01-10 08:06:11 -08:00
2017-07-04 14:30:03 +02:00
2018-01-17 23:04:31 -02:00
2018-01-17 23:04:31 -02:00
2017-12-22 15:02:05 +01:00
2018-01-25 16:02:24 +01:00
2017-04-10 10:14:50 +01:00
2017-09-19 16:20:49 +02:00
2017-07-05 09:12:44 +02:00
2017-01-10 08:49:59 -08:00
2017-09-19 14:09:11 +02:00
2017-07-04 14:30:03 +02:00
2017-06-07 18:22:02 +02:00
2017-12-27 17:20:44 -08:00
2017-07-31 13:12:53 +03:00
2017-12-29 12:43:39 -08:00
2017-07-04 14:39:27 +02:00