mbox series

[0/4] hw/qdev-properties: Constify Property* in DeviceClass

Message ID 20230203101224.25796-1-philmd@linaro.org
Headers show
Series hw/qdev-properties: Constify Property* in DeviceClass | expand

Message

Philippe Mathieu-Daudé Feb. 3, 2023, 10:12 a.m. UTC
Qualify some Property pointers as 'const' when the
structure is accessed read-only.

Philippe Mathieu-Daudé (4):
  hw/qdev-properties: Constify Property* in object_field_prop_ptr()
  hw/qdev-properties: Constify Property* in PropertyInfo::print()
    handler
  hw/qdev-properties: Constify Property* in PropertyInfo::create()
    handler
  hw/qdev-properties: Constify DeviceClass::props_ field

 hw/core/qdev-properties-system.c |  2 +-
 hw/core/qdev-properties.c        | 14 +++++++-------
 include/hw/qdev-core.h           |  2 +-
 include/hw/qdev-properties.h     |  6 +++---
 softmmu/qdev-monitor.c           |  4 ++--
 5 files changed, 14 insertions(+), 14 deletions(-)

Comments

Philippe Mathieu-Daudé Feb. 23, 2023, 1 p.m. UTC | #1
On 3/2/23 11:12, Philippe Mathieu-Daudé wrote:
> Qualify some Property pointers as 'const' when the
> structure is accessed read-only.
> 
> Philippe Mathieu-Daudé (4):
>    hw/qdev-properties: Constify Property* in object_field_prop_ptr()
>    hw/qdev-properties: Constify Property* in PropertyInfo::print()
>      handler
>    hw/qdev-properties: Constify Property* in PropertyInfo::create()
>      handler
>    hw/qdev-properties: Constify DeviceClass::props_ field
Ping (trivial).