Attach a description to each temperature property so it shows up in qom-list-properties.
Signed-off-by: Emmanuel Blot <[email protected]> --- hw/sensor/tmp421.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/sensor/tmp421.c b/hw/sensor/tmp421.c index 8c789a2a09..87cbd9dd4b 100644 --- a/hw/sensor/tmp421.c +++ b/hw/sensor/tmp421.c @@ -394,6 +394,8 @@ static void tmp421_initfn(Object *obj) object_property_add(obj, name, "int", &int_type_info, tmp421_get_temperature, tmp421_set_temperature, NULL, NULL); + object_property_set_description(obj, name, + "Temperature, in millidegrees Celsius"); } } -- 2.53.0-Meta
