Marc-André Lureau
4f67d30b5e
qdev: set properties with device_class_set_props()
The following patch will need to handle properties registration during
class_init time. Let's use a device_class_set_props() setter.
spatch --macro-file scripts/cocci-macro-file.h --sp-file
./scripts/coccinelle/qdev-set-props.cocci --keep-comments --in-place
--dir .
@@
typedef DeviceClass;
DeviceClass *d;
expression val;
@@
- d->props = val
+ device_class_set_props(d, val)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20200110153039.1379601-20-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-01-24 20:59:15 +01:00
..
2020-01-20 09:10:23 +01:00
2019-07-05 09:50:33 +02:00
2019-08-22 10:04:20 +02:00
2019-08-22 10:04:20 +02:00
2019-08-22 10:04:20 +02:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2019-06-12 13:20:20 +02:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2018-10-15 09:57:33 +02:00
2020-01-24 20:59:15 +01:00
2017-03-27 12:14:45 +02:00
2017-03-17 10:23:44 +01:00
2020-01-24 20:59:15 +01:00
2019-08-16 13:31:52 +02:00
2019-06-12 13:20:20 +02:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:52 +02:00
2015-07-24 13:57:45 +02:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2019-12-16 13:04:46 +01:00
2019-10-28 19:06:49 +01:00
2020-01-24 20:59:15 +01:00
2019-10-28 19:06:49 +01:00
2019-08-16 13:31:52 +02:00
2014-02-04 19:34:30 +01:00
2020-01-24 20:59:15 +01:00
2019-09-07 08:30:34 +02:00
2019-08-16 13:31:52 +02:00
2016-05-12 13:22:24 +01:00
2019-08-16 13:31:52 +02:00
2014-01-31 14:47:33 +00:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:52 +02:00
2014-01-31 14:47:33 +00:00
2016-01-29 15:07:24 +00:00
2020-01-02 13:54:57 +04:00
2020-01-24 20:59:15 +01:00
2019-08-16 13:31:52 +02:00
2020-01-24 20:59:15 +01:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:52 +02:00
2017-04-24 12:32:12 +01:00
2020-01-24 20:59:15 +01:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:52 +02:00
2014-01-31 14:47:33 +00:00
2019-08-16 13:31:52 +02:00
2020-01-24 20:59:15 +01:00
2019-03-22 16:18:07 +00:00
2019-12-18 02:34:13 +01:00
2019-05-13 08:58:55 +02:00
2019-09-19 10:37:46 +02:00
2019-09-19 10:37:46 +02:00
2019-12-18 02:34:13 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2019-12-18 02:34:13 +01:00
2019-05-29 06:30:45 +02:00
2020-01-24 20:59:15 +01:00
2019-05-29 06:30:45 +02:00
2019-06-12 13:20:20 +02:00
2019-05-29 06:30:45 +02:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2019-06-12 13:20:21 +02:00
2020-01-24 20:59:15 +01:00
2019-08-16 13:31:52 +02:00
2019-11-21 07:12:28 +01:00