Hi, This is a readability suggestion. See the first patch for the doc change, and the second patch for an example of usage and readability improvement.
thanks Marc-André Lureau (2): object: recommend a few type check macros nvdimm: use IS_NVDIMM macro include/hw/mem/nvdimm.h | 1 + include/qom/object.h | 25 ++++++++++++++++--------- hw/acpi/ich9.c | 2 +- hw/acpi/nvdimm.c | 2 +- hw/acpi/piix4.c | 2 +- hw/i386/pc.c | 8 +++----- hw/mem/pc-dimm.c | 2 +- 7 files changed, 24 insertions(+), 18 deletions(-) -- 2.19.0