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

Mark Cave-Ayland posted 2 patches 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260624153322.1470576-1-mark.caveayland@nutanix.com
Maintainers: Tyrone Ting <kfting@nuvoton.com>, Hao Wu <wuhaotsh@google.com>, Alistair Francis <alistair@alistair23.me>, Peter Maydell <peter.maydell@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>
There is a newer version of this series
hw/adc/npcm7xx_adc.c | 75 +++++++++++++++++++++++++++++++++++++++-----
qom/object.c         | 27 ++++++++++++++++
2 files changed, 95 insertions(+), 7 deletions(-)
[PATCH 0/2] hw/adc: convert object props to class props
Posted by Mark Cave-Ayland 1 month 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>


Mark Cave-Ayland (2):
  qom: add support for array class properties
  hw/adc/npcm7xx_adc.c: convert NPCM7XX_ADC object props to class props

 hw/adc/npcm7xx_adc.c | 75 +++++++++++++++++++++++++++++++++++++++-----
 qom/object.c         | 27 ++++++++++++++++
 2 files changed, 95 insertions(+), 7 deletions(-)

-- 
2.43.0