]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
nvdimm: fix typo in label-size definition
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Mon, 21 May 2018 16:32:00 +0000 (10:32 -0600)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 23 May 2018 14:02:03 +0000 (17:02 +0300)
Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Fixes: commit da6789c27c2e ("nvdimm: add a macro for property "label-size"")
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Cc: Haozhong Zhang <haozhong.zhang@intel.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/mem/nvdimm.c
include/hw/mem/nvdimm.h

index acb656b67250badae6a3885654771d72300c8c60..4087aca25e3384edd7fdd49004a6ee2c7455c90b 100644 (file)
@@ -89,7 +89,7 @@ static void nvdimm_set_unarmed(Object *obj, bool value, Error **errp)
 
 static void nvdimm_init(Object *obj)
 {
-    object_property_add(obj, NVDIMM_LABLE_SIZE_PROP, "int",
+    object_property_add(obj, NVDIMM_LABEL_SIZE_PROP, "int",
                         nvdimm_get_label_size, nvdimm_set_label_size, NULL,
                         NULL, NULL);
     object_property_add_bool(obj, NVDIMM_UNARMED_PROP,
index 7fd87c4e1cef470e4727b724f359dd5ef1ef3c04..74c60332e12256c738dc3d7c1d1381b04e3baa80 100644 (file)
@@ -48,7 +48,7 @@
 #define NVDIMM_GET_CLASS(obj) OBJECT_GET_CLASS(NVDIMMClass, (obj), \
                                                TYPE_NVDIMM)
 
-#define NVDIMM_LABLE_SIZE_PROP "label-size"
+#define NVDIMM_LABEL_SIZE_PROP "label-size"
 #define NVDIMM_UNARMED_PROP    "unarmed"
 
 struct NVDIMMDevice {