]> Git Repo - qemu.git/commitdiff
tmp105: change len and alorm to uint8_t
authorJuan Quintela <[email protected]>
Tue, 29 Sep 2009 20:48:37 +0000 (22:48 +0200)
committerAnthony Liguori <[email protected]>
Mon, 5 Oct 2009 14:32:38 +0000 (09:32 -0500)
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 <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
hw/tmp105.c

index 0113f8d3f9e537851161045217bcded8cabbb466..b75a70be629e299027221d9cda789408bb9ba33d 100644 (file)
@@ -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)
This page took 0.025999 seconds and 4 git commands to generate.