hw/sd: Constify all Property
Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
ec7630a2a1
commit
2ba395a5df
@ -808,7 +808,7 @@ static const VMStateDescription vmstate_allwinner_sdhost = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
static Property allwinner_sdhost_properties[] = {
|
static const Property allwinner_sdhost_properties[] = {
|
||||||
DEFINE_PROP_LINK("dma-memory", AwSdHostState, dma_mr,
|
DEFINE_PROP_LINK("dma-memory", AwSdHostState, dma_mr,
|
||||||
TYPE_MEMORY_REGION, MemoryRegion *),
|
TYPE_MEMORY_REGION, MemoryRegion *),
|
||||||
DEFINE_PROP_END_OF_LIST(),
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
|
@ -204,7 +204,7 @@ static const VMStateDescription vmstate_aspeed_sdhci = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static Property aspeed_sdhci_properties[] = {
|
static const Property aspeed_sdhci_properties[] = {
|
||||||
DEFINE_PROP_UINT8("num-slots", AspeedSDHCIState, num_slots, 0),
|
DEFINE_PROP_UINT8("num-slots", AspeedSDHCIState, num_slots, 0),
|
||||||
DEFINE_PROP_END_OF_LIST(),
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
};
|
};
|
||||||
|
@ -2798,18 +2798,18 @@ static void emmc_realize(DeviceState *dev, Error **errp)
|
|||||||
sd_realize(dev, errp);
|
sd_realize(dev, errp);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Property sdmmc_common_properties[] = {
|
static const Property sdmmc_common_properties[] = {
|
||||||
DEFINE_PROP_DRIVE("drive", SDState, blk),
|
DEFINE_PROP_DRIVE("drive", SDState, blk),
|
||||||
DEFINE_PROP_END_OF_LIST()
|
DEFINE_PROP_END_OF_LIST()
|
||||||
};
|
};
|
||||||
|
|
||||||
static Property sd_properties[] = {
|
static const Property sd_properties[] = {
|
||||||
DEFINE_PROP_UINT8("spec_version", SDState,
|
DEFINE_PROP_UINT8("spec_version", SDState,
|
||||||
spec_version, SD_PHY_SPECv3_01_VERS),
|
spec_version, SD_PHY_SPECv3_01_VERS),
|
||||||
DEFINE_PROP_END_OF_LIST()
|
DEFINE_PROP_END_OF_LIST()
|
||||||
};
|
};
|
||||||
|
|
||||||
static Property emmc_properties[] = {
|
static const Property emmc_properties[] = {
|
||||||
DEFINE_PROP_UINT64("boot-partition-size", SDState, boot_part_size, 0),
|
DEFINE_PROP_UINT64("boot-partition-size", SDState, boot_part_size, 0),
|
||||||
DEFINE_PROP_UINT8("boot-config", SDState, boot_config, 0x0),
|
DEFINE_PROP_UINT8("boot-config", SDState, boot_config, 0x0),
|
||||||
DEFINE_PROP_END_OF_LIST()
|
DEFINE_PROP_END_OF_LIST()
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#include "hw/sd/sdhci.h"
|
#include "hw/sd/sdhci.h"
|
||||||
#include "sdhci-internal.h"
|
#include "sdhci-internal.h"
|
||||||
|
|
||||||
static Property sdhci_pci_properties[] = {
|
static const Property sdhci_pci_properties[] = {
|
||||||
DEFINE_SDHCI_COMMON_PROPERTIES(SDHCIState),
|
DEFINE_SDHCI_COMMON_PROPERTIES(SDHCIState),
|
||||||
DEFINE_PROP_END_OF_LIST(),
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
};
|
};
|
||||||
|
@ -1544,7 +1544,7 @@ void sdhci_common_class_init(ObjectClass *klass, void *data)
|
|||||||
|
|
||||||
/* --- qdev SysBus --- */
|
/* --- qdev SysBus --- */
|
||||||
|
|
||||||
static Property sdhci_sysbus_properties[] = {
|
static const Property sdhci_sysbus_properties[] = {
|
||||||
DEFINE_SDHCI_COMMON_PROPERTIES(SDHCIState),
|
DEFINE_SDHCI_COMMON_PROPERTIES(SDHCIState),
|
||||||
DEFINE_PROP_BOOL("pending-insert-quirk", SDHCIState, pending_insert_quirk,
|
DEFINE_PROP_BOOL("pending-insert-quirk", SDHCIState, pending_insert_quirk,
|
||||||
false),
|
false),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user