[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 6f3a779] tmp105: change len and alorm to uint8_t

From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 6f3a779] tmp105: change len and alorm to uint8_t
Date: Mon, 05 Oct 2009 14:52:59 -0000

From: Juan Quintela <address@hidden>

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 <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/hw/tmp105.c b/hw/tmp105.c
index 0113f8d..b75a70b 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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]