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
> +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)
>
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