[PATCH v3 0/1] hw/adc: convert object props to class props

Mark Cave-Ayland posted 1 patch 3 weeks, 1 day ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260703143408.3235231-1-mark.caveayland@nutanix.com
Maintainers: Alistair Francis <alistair@alistair23.me>, Peter Maydell <peter.maydell@linaro.org>, Tyrone Ting <kfting@nuvoton.com>, Hao Wu <wuhaotsh@google.com>
hw/adc/npcm7xx_adc.c | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
[PATCH v3 0/1] hw/adc: convert object props to class props
Posted by Mark Cave-Ayland 3 weeks, 1 day ago
Since the use of object props is effectively deprecated, here is an attempt
to convert all use of object props in hw/adc to class props. The eventual
aim is to continue working through the codebase, removing all remaining uses
of object props.

The series is lightly tested: it passes "make check", GitLab CI and some
simple local tests. I'm mostly interested for feedback on the conversion
strategy, and to get a feel for the best way to merge this series since once
the basic conversion patterns are in place, the same patterns can be applied
elsewhere and it would be good to minimise the merge window for such changes.

Signed-off-by: Mark Cave-Ayland <mark.caveayland@nutanix.com>
Based-on: 20260703135512.3213964-1-mark.caveayland@nutanix.com ("hw/acpi: convert object props to class props")

v3:
- Rebase onto 20260703135512.3213964-1-mark.caveayland@nutanix.com ("hw/acpi: convert object props to class props")
  to use new object_class_property_add_uint32_ptr() function

v2:
- Drop support for "foo[*]" notation, and generate the array property name
  directly as suggested by Daniel


Mark Cave-Ayland (1):
  hw/adc/npcm7xx_adc.c: convert NPCM7XX_ADC object props to class props

 hw/adc/npcm7xx_adc.c | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

-- 
2.43.0