qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PULL 29/67] hw/ide: Constify all Property


From: Richard Henderson
Subject: [PULL 29/67] hw/ide: Constify all Property
Date: Sun, 15 Dec 2024 13:04:55 -0600

Reviewed-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 hw/ide/cf.c      | 2 +-
 hw/ide/cmd646.c  | 2 +-
 hw/ide/ide-dev.c | 6 +++---
 hw/ide/isa.c     | 2 +-
 hw/ide/macio.c   | 2 +-
 hw/ide/mmio.c    | 2 +-
 6 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/hw/ide/cf.c b/hw/ide/cf.c
index 2a425cb0f2..190914f513 100644
--- a/hw/ide/cf.c
+++ b/hw/ide/cf.c
@@ -24,7 +24,7 @@ static void ide_cf_realize(IDEDevice *dev, Error **errp)
     ide_dev_initfn(dev, IDE_CFATA, errp);
 }
 
-static Property ide_cf_properties[] = {
+static const Property ide_cf_properties[] = {
     DEFINE_IDE_DEV_PROPERTIES(),
     DEFINE_BLOCK_CHS_PROPERTIES(IDEDrive, dev.conf),
     DEFINE_PROP_BIOS_CHS_TRANS("bios-chs-trans",
diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c
index 6b02fc81ec..942f6c470c 100644
--- a/hw/ide/cmd646.c
+++ b/hw/ide/cmd646.c
@@ -313,7 +313,7 @@ static void pci_cmd646_ide_exitfn(PCIDevice *dev)
     }
 }
 
-static Property cmd646_ide_properties[] = {
+static const Property cmd646_ide_properties[] = {
     DEFINE_PROP_UINT32("secondary", PCIIDEState, secondary, 0),
     DEFINE_PROP_END_OF_LIST(),
 };
diff --git a/hw/ide/ide-dev.c b/hw/ide/ide-dev.c
index 03f7967798..cc92531f1c 100644
--- a/hw/ide/ide-dev.c
+++ b/hw/ide/ide-dev.c
@@ -29,7 +29,7 @@
 #include "qapi/visitor.h"
 #include "ide-internal.h"
 
-static Property ide_props[] = {
+static const Property ide_props[] = {
     DEFINE_PROP_UINT32("unit", IDEDevice, unit, -1),
     DEFINE_PROP_BOOL("win2k-install-hack", IDEDevice, win2k_install_hack, 
false),
     DEFINE_PROP_END_OF_LIST(),
@@ -191,7 +191,7 @@ static void ide_cd_realize(IDEDevice *dev, Error **errp)
     ide_dev_initfn(dev, IDE_CD, errp);
 }
 
-static Property ide_hd_properties[] = {
+static const Property ide_hd_properties[] = {
     DEFINE_IDE_DEV_PROPERTIES(),
     DEFINE_BLOCK_CHS_PROPERTIES(IDEDrive, dev.conf),
     DEFINE_PROP_BIOS_CHS_TRANS("bios-chs-trans",
@@ -218,7 +218,7 @@ static const TypeInfo ide_hd_info = {
     .class_init    = ide_hd_class_init,
 };
 
-static Property ide_cd_properties[] = {
+static const Property ide_cd_properties[] = {
     DEFINE_IDE_DEV_PROPERTIES(),
     DEFINE_PROP_END_OF_LIST(),
 };
diff --git a/hw/ide/isa.c b/hw/ide/isa.c
index 211ebc9ba7..a0a7e4837c 100644
--- a/hw/ide/isa.c
+++ b/hw/ide/isa.c
@@ -101,7 +101,7 @@ ISADevice *isa_ide_init(ISABus *bus, int iobase, int 
iobase2, int irqnum,
     return isadev;
 }
 
-static Property isa_ide_properties[] = {
+static const Property isa_ide_properties[] = {
     DEFINE_PROP_UINT32("iobase",  ISAIDEState, iobase,  0x1f0),
     DEFINE_PROP_UINT32("iobase2", ISAIDEState, iobase2, 0x3f6),
     DEFINE_PROP_UINT32("irq",     ISAIDEState, irqnum,  14),
diff --git a/hw/ide/macio.c b/hw/ide/macio.c
index 99477a3d13..25f8403e80 100644
--- a/hw/ide/macio.c
+++ b/hw/ide/macio.c
@@ -459,7 +459,7 @@ static void macio_ide_initfn(Object *obj)
                              qdev_prop_allow_set_link_before_realize, 0);
 }
 
-static Property macio_ide_properties[] = {
+static const Property macio_ide_properties[] = {
     DEFINE_PROP_UINT32("channel", MACIOIDEState, channel, 0),
     DEFINE_PROP_UINT32("addr", MACIOIDEState, addr, -1),
     DEFINE_PROP_END_OF_LIST(),
diff --git a/hw/ide/mmio.c b/hw/ide/mmio.c
index 53d22fb37f..43ab66f347 100644
--- a/hw/ide/mmio.c
+++ b/hw/ide/mmio.c
@@ -141,7 +141,7 @@ static void mmio_ide_initfn(Object *obj)
     sysbus_init_irq(d, &s->irq);
 }
 
-static Property mmio_ide_properties[] = {
+static const Property mmio_ide_properties[] = {
     DEFINE_PROP_UINT32("shift", MMIOIDEState, shift, 0),
     DEFINE_PROP_END_OF_LIST()
 };
-- 
2.43.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]