Re: [Qemu-devel] [PATCH v2 7/7] tmp105: Add temperature QOM property

2012-12-15 Thread Andreas Färber
Am 15.12.2012 17:52, schrieb Alex Horn: >> +static void tmp105_initfn(Object *obj) >> +{ >> +object_property_add(obj, "temperature", "int", >> +tmp105_get_temperature, >> +tmp105_set_temperature, NULL, NULL, NULL); >> +} >> + >> static void tmp10

Re: [Qemu-devel] [PATCH v2 7/7] tmp105: Add temperature QOM property

2012-12-15 Thread Alex Horn
> +static void tmp105_initfn(Object *obj) > +{ > +object_property_add(obj, "temperature", "int", > +tmp105_get_temperature, > +tmp105_set_temperature, NULL, NULL, NULL); > +} > + > static void tmp105_class_init(ObjectClass *klass, void *data) >

[Qemu-devel] [PATCH v2 7/7] tmp105: Add temperature QOM property

2012-12-14 Thread Andreas Färber
This obsoletes tmp105_set() and allows for better error handling. Signed-off-by: Andreas Färber --- hw/tmp105.c | 39 --- hw/tmp105.h | 15 --- 2 Dateien geändert, 32 Zeilen hinzugefügt(+), 22 Zeilen entfernt(-) diff --git a/hw/tmp105.c b/hw/t