Re: [PATCH-for-9.0 v2 5/8] hw: Prefer qdev_prop_set_bit over object_property_set_bool for QDev

2023-12-12 Thread Peter Maydell
On Thu, 23 Nov 2023 at 14:38, Philippe Mathieu-Daudé wrote: > > The QOM API is lower level than the QDev one. When an instance is > QDev and setting the property can not fail (using _abort), > prefer qdev_prop_set_bit() over object_property_set_bool(). > > Mechanical transformation using the

Re: [PATCH-for-9.0 v2 5/8] hw: Prefer qdev_prop_set_bit over object_property_set_bool for QDev

2023-11-26 Thread Harsh Prateek Bora
On 11/23/23 20:08, Philippe Mathieu-Daudé wrote: The QOM API is lower level than the QDev one. When an instance is QDev and setting the property can not fail (using _abort), prefer qdev_prop_set_bit() over object_property_set_bool(). Mechanical transformation using the following coccinelle

Re: [PATCH-for-9.0 v2 5/8] hw: Prefer qdev_prop_set_bit over object_property_set_bool for QDev

2023-11-24 Thread Ani Sinha
> On 23-Nov-2023, at 8:08 PM, Philippe Mathieu-Daudé wrote: > > The QOM API is lower level than the QDev one. When an instance is > QDev and setting the property can not fail (using _abort), > prefer qdev_prop_set_bit() over object_property_set_bool(). > > Mechanical transformation using the

[PATCH-for-9.0 v2 5/8] hw: Prefer qdev_prop_set_bit over object_property_set_bool for QDev

2023-11-23 Thread Philippe Mathieu-Daudé
The QOM API is lower level than the QDev one. When an instance is QDev and setting the property can not fail (using _abort), prefer qdev_prop_set_bit() over object_property_set_bool(). Mechanical transformation using the following coccinelle patch: @@ expression o, p, v; @@ -