Re: [PATCH v2 07/58] qdev: Convert to qdev_unrealize() with Coccinelle

2020-06-09 Thread Philippe Mathieu-Daudé
On 5/29/20 3:44 PM, Markus Armbruster wrote: > For readability, and consistency with qbus_realize(). > > Coccinelle script: > > @ depends on !(file in "hw/core/qdev.c")@ > typedef DeviceState; > DeviceState *dev; > symbol false, error_abort; > @@ > -object_property_set

[PATCH v2 07/58] qdev: Convert to qdev_unrealize() with Coccinelle

2020-05-29 Thread Markus Armbruster
For readability, and consistency with qbus_realize(). Coccinelle script: @ depends on !(file in "hw/core/qdev.c")@ typedef DeviceState; DeviceState *dev; symbol false, error_abort; @@ -object_property_set_bool(OBJECT(dev), false, "realized", &error_abort); +qde