aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-12-13 17:23:37 +0000
committerRichard Henderson <richard.henderson@linaro.org>2024-12-15 12:56:32 -0600
commit35d71fd9cea66b0c66d94b9e29bfb85781ad6e7f (patch)
treefab4c55ab0c3765ad1dff163cf84cb4e88568305 /hw
parent3885fa159163230e338198e085f18b34ce1eb894 (diff)
downloadqemu-35d71fd9cea66b0c66d94b9e29bfb85781ad6e7f.zip
qemu-35d71fd9cea66b0c66d94b9e29bfb85781ad6e7f.tar.gz
qemu-35d71fd9cea66b0c66d94b9e29bfb85781ad6e7f.tar.bz2
hw/ufs: Constify all Property
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/ufs/lu.c2
-rw-r--r--hw/ufs/ufs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/ufs/lu.c b/hw/ufs/lu.c
index 81bfff9..74ff52a 100644
--- a/hw/ufs/lu.c
+++ b/hw/ufs/lu.c
@@ -274,7 +274,7 @@ static UfsReqResult ufs_process_scsi_cmd(UfsLu *lu, UfsRequest *req)
return UFS_REQUEST_NO_COMPLETE;
}
-static Property ufs_lu_props[] = {
+static const Property ufs_lu_props[] = {
DEFINE_PROP_DRIVE("drive", UfsLu, conf.blk),
DEFINE_PROP_UINT8("lun", UfsLu, lun, 0),
DEFINE_PROP_END_OF_LIST(),
diff --git a/hw/ufs/ufs.c b/hw/ufs/ufs.c
index 79f786e..fe77158 100644
--- a/hw/ufs/ufs.c
+++ b/hw/ufs/ufs.c
@@ -1752,7 +1752,7 @@ static void ufs_exit(PCIDevice *pci_dev)
}
}
-static Property ufs_props[] = {
+static const Property ufs_props[] = {
DEFINE_PROP_STRING("serial", UfsHc, params.serial),
DEFINE_PROP_UINT8("nutrs", UfsHc, params.nutrs, 32),
DEFINE_PROP_UINT8("nutmrs", UfsHc, params.nutmrs, 8),