diff options
author | Andreas Färber <andreas.faerber@web.de> | 2013-01-16 01:57:59 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-01-16 12:14:20 -0600 |
commit | eb60d1c55268f489b32e6b694e84e2017b75a3d3 (patch) | |
tree | 6820987d46b77bd158f050204d63cd90c1788aae /hw/tmp105.h | |
parent | 2aad80eeb788c7c3f71c57e78352f0fdadf8fe28 (diff) | |
download | qemu-eb60d1c55268f489b32e6b694e84e2017b75a3d3.zip qemu-eb60d1c55268f489b32e6b694e84e2017b75a3d3.tar.gz qemu-eb60d1c55268f489b32e6b694e84e2017b75a3d3.tar.bz2 |
tmp105: Add temperature QOM property
This obsoletes tmp105_set() and allows for better error handling.
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/tmp105.h')
-rw-r--r-- | hw/tmp105.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/hw/tmp105.h b/hw/tmp105.h index c21396f..d218919 100644 --- a/hw/tmp105.h +++ b/hw/tmp105.h @@ -44,19 +44,4 @@ typedef struct TMP105State { uint8_t alarm; } TMP105State; -/** - * tmp105_set: - * @i2c: dispatcher to TMP105 hardware model - * @temp: temperature with 0.001 centigrades units in the range -40 C to +125 C - * - * Sets the temperature of the TMP105 hardware model. - * - * Bits 5 and 6 (value 32 and 64) in the register indexed by TMP105_REG_CONFIG - * determine the precision of the temperature. See Table 8 in the data sheet. - * - * @see_also: I2C_SLAVE macro - * @see_also: http://www.ti.com/lit/gpn/tmp105 - */ -void tmp105_set(I2CSlave *i2c, int temp); - #endif |