diff options
author | Juan Quintela <quintela@redhat.com> | 2009-09-29 22:48:37 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:38 -0500 |
commit | 6f3a7798ecc18575e7d329ff32c2efa63b71e0e2 (patch) | |
tree | 5641c76faa1f325ee3739c81ea77502b1cb90009 /hw/tmp105.c | |
parent | 289070c71568b703d48d9da413ead09f4303ed30 (diff) |
tmp105: change len and alorm to uint8_t
They were using only with very small integers, and they are sent/read as
bytes. They can't become negative as far as I can see
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/tmp105.c')
-rw-r--r-- | hw/tmp105.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/tmp105.c b/hw/tmp105.c index 0113f8d3f..b75a70be6 100644 --- a/hw/tmp105.c +++ b/hw/tmp105.c @@ -23,7 +23,7 @@ typedef struct { i2c_slave i2c; - int len; + uint8_t len; uint8_t buf[2]; qemu_irq pin; @@ -32,7 +32,7 @@ typedef struct { int16_t temperature; int16_t limit[2]; int faults; - int alarm; + uint8_t alarm; } TMP105State; static void tmp105_interrupt_update(TMP105State *s) |