[PATCH v2 05/25] hw/sensor: tmp105: describe the temperature property
Emmanuel Blot via <[email protected]> Fri, 31 Jul 2026 12:45:04 +0200
| Newsgroups | org.nongnu.qemu-arm,org.nongnu.qemu-devel |
|---|---|
| Message-ID | <[email protected]> |
Attach a description to the dynamic "temperature" QOM property so it is documented in the QOM introspection output (qom-list-properties). The value is expressed in millidegrees Celsius. Signed-off-by: Emmanuel Blot <[email protected]> --- hw/sensor/tmp105.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/sensor/tmp105.c b/hw/sensor/tmp105.c index 5c77f991cc..fefa661711 100644 --- a/hw/sensor/tmp105.c +++ b/hw/sensor/tmp105.c @@ -367,6 +367,8 @@ static void tmp105_initfn(Object *obj) object_property_add(obj, "temperature", "int", tmp105_get_temperature, tmp105_set_temperature, NULL, NULL); + object_property_set_description(obj, "temperature", + "Temperature, in millidegrees Celsius"); } static void tmp105_class_init(ObjectClass *klass, const void *data) -- 2.50.1